Class: Spotted::Models::ArtistObject

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/spotted/models/artist_object.rb

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(id: nil, external_urls: nil, followers: nil, genres: nil, href: nil, images: nil, name: nil, popularity: nil, published: nil, type: nil, uri: nil) ⇒ Object

Some parameter documentations has been truncated, see Spotted::Models::ArtistObject for more details.

Parameters:

  • id (String) (defaults to: nil)

    The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the artis

  • external_urls (Spotted::Models::ExternalURLObject) (defaults to: nil)

    Known external URLs for this artist.

  • followers (Spotted::Models::FollowersObject) (defaults to: nil)

    Information about the followers of the artist.

  • genres (Array<String>) (defaults to: nil)

    A list of the genres the artist is associated with. If not yet classified, the a

  • href (String) (defaults to: nil)

    A link to the Web API endpoint providing full details of the artist.

  • images (Array<Spotted::Models::ImageObject>) (defaults to: nil)

    Images of the artist in various sizes, widest first.

  • name (String) (defaults to: nil)

    The name of the artist.

  • popularity (Integer) (defaults to: nil)

    The popularity of the artist. The value will be between 0 and 100, with 100 bein

  • published (Boolean) (defaults to: nil)

    The playlist’s public/private status (if it should be added to the user’s profil

  • type (Symbol, Spotted::Models::ArtistObject::Type) (defaults to: nil)

    The object type.

  • uri (String) (defaults to: nil)

    The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the arti



# File 'lib/spotted/models/artist_object.rb', line 87

Instance Attribute Details

#external_urlsSpotted::Models::ExternalURLObject?

Known external URLs for this artist.



17
# File 'lib/spotted/models/artist_object.rb', line 17

optional :external_urls, -> { Spotted::ExternalURLObject }

#followersSpotted::Models::FollowersObject?

Deprecated.

Information about the followers of the artist.



25
# File 'lib/spotted/models/artist_object.rb', line 25

optional :followers, -> { Spotted::FollowersObject }

#genresArray<String>?

Deprecated.

A list of the genres the artist is associated with. If not yet classified, the array is empty.

Returns:

  • (Array<String>, nil)


34
# File 'lib/spotted/models/artist_object.rb', line 34

optional :genres, Spotted::Internal::Type::ArrayOf[String]

#hrefString?

A link to the Web API endpoint providing full details of the artist.

Returns:

  • (String, nil)


40
# File 'lib/spotted/models/artist_object.rb', line 40

optional :href, String

#idString?

The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the artist.

Returns:

  • (String, nil)


11
# File 'lib/spotted/models/artist_object.rb', line 11

optional :id, String

#imagesArray<Spotted::Models::ImageObject>?

Images of the artist in various sizes, widest first.

Returns:



46
# File 'lib/spotted/models/artist_object.rb', line 46

optional :images, -> { Spotted::Internal::Type::ArrayOf[Spotted::ImageObject] }

#nameString?

The name of the artist.

Returns:

  • (String, nil)


52
# File 'lib/spotted/models/artist_object.rb', line 52

optional :name, String

#popularityInteger?

Deprecated.

The popularity of the artist. The value will be between 0 and 100, with 100 being the most popular. The artist’s popularity is calculated from the popularity of all the artist’s tracks.

Returns:

  • (Integer, nil)


62
# File 'lib/spotted/models/artist_object.rb', line 62

optional :popularity, Integer

#publishedBoolean?

The playlist’s public/private status (if it should be added to the user’s profile or not): ‘true` the playlist will be public, `false` the playlist will be private, `null` the playlist status is not relevant. For more about public/private status, see [Working with Playlists](/documentation/web-api/concepts/playlists)

Returns:

  • (Boolean, nil)


72
# File 'lib/spotted/models/artist_object.rb', line 72

optional :published, Spotted::Internal::Type::Boolean

#typeSymbol, ...

The object type.

Returns:



78
# File 'lib/spotted/models/artist_object.rb', line 78

optional :type, enum: -> { Spotted::ArtistObject::Type }

#uriString?

The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the artist.

Returns:

  • (String, nil)


85
# File 'lib/spotted/models/artist_object.rb', line 85

optional :uri, String