Class: Spotted::Models::ArtistObject
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Spotted::Models::ArtistObject
- Defined in:
- lib/spotted/models/artist_object.rb
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#external_urls ⇒ Spotted::Models::ExternalURLObject?
Known external URLs for this artist.
-
#followers ⇒ Spotted::Models::FollowersObject?
Information about the followers of the artist.
-
#genres ⇒ Array<String>?
A list of the genres the artist is associated with.
-
#href ⇒ String?
A link to the Web API endpoint providing full details of the artist.
-
#id ⇒ String?
The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the artist.
-
#images ⇒ Array<Spotted::Models::ImageObject>?
Images of the artist in various sizes, widest first.
-
#name ⇒ String?
The name of the artist.
-
#popularity ⇒ Integer?
The popularity of the artist.
-
#type ⇒ Symbol, ...
The object type.
-
#uri ⇒ String?
The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the artist.
Instance Method Summary collapse
-
#initialize(id: nil, external_urls: nil, followers: nil, genres: nil, href: nil, images: nil, name: nil, popularity: nil, type: nil, uri: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see ArtistObject for more details.
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, type: nil, uri: nil) ⇒ Object
Some parameter documentations has been truncated, see Spotted::Models::ArtistObject for more details.
|
|
# File 'lib/spotted/models/artist_object.rb', line 71
|
Instance Attribute Details
#external_urls ⇒ Spotted::Models::ExternalURLObject?
Known external URLs for this artist.
17 |
# File 'lib/spotted/models/artist_object.rb', line 17 optional :external_urls, -> { Spotted::ExternalURLObject } |
#followers ⇒ Spotted::Models::FollowersObject?
Information about the followers of the artist.
23 |
# File 'lib/spotted/models/artist_object.rb', line 23 optional :followers, -> { Spotted::FollowersObject } |
#genres ⇒ Array<String>?
A list of the genres the artist is associated with. If not yet classified, the array is empty.
30 |
# File 'lib/spotted/models/artist_object.rb', line 30 optional :genres, Spotted::Internal::Type::ArrayOf[String] |
#href ⇒ String?
A link to the Web API endpoint providing full details of the artist.
36 |
# File 'lib/spotted/models/artist_object.rb', line 36 optional :href, String |
#id ⇒ String?
The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the artist.
11 |
# File 'lib/spotted/models/artist_object.rb', line 11 optional :id, String |
#images ⇒ Array<Spotted::Models::ImageObject>?
Images of the artist in various sizes, widest first.
42 |
# File 'lib/spotted/models/artist_object.rb', line 42 optional :images, -> { Spotted::Internal::Type::ArrayOf[Spotted::ImageObject] } |
#name ⇒ String?
The name of the artist.
48 |
# File 'lib/spotted/models/artist_object.rb', line 48 optional :name, String |
#popularity ⇒ Integer?
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.
56 |
# File 'lib/spotted/models/artist_object.rb', line 56 optional :popularity, Integer |
#type ⇒ Symbol, ...
The object type.
62 |
# File 'lib/spotted/models/artist_object.rb', line 62 optional :type, enum: -> { Spotted::ArtistObject::Type } |
#uri ⇒ String?
The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the artist.
69 |
# File 'lib/spotted/models/artist_object.rb', line 69 optional :uri, String |