Class: Spotted::Models::LinkedTrackObject

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

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, href: nil, type: nil, uri: nil) ⇒ Object

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

Parameters:

  • id (String) (defaults to: nil)

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

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

    Known external URLs for this track.

  • href (String) (defaults to: nil)

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

  • type (String) (defaults to: nil)

    The object type: “track”.

  • uri (String) (defaults to: nil)

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



# File 'lib/spotted/models/linked_track_object.rb', line 38

Instance Attribute Details

#external_urlsSpotted::Models::ExternalURLObject?

Known external URLs for this track.



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

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

#hrefString?

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

Returns:

  • (String, nil)


23
# File 'lib/spotted/models/linked_track_object.rb', line 23

optional :href, String

#idString?

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

Returns:

  • (String, nil)


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

optional :id, String

#typeString?

The object type: “track”.

Returns:

  • (String, nil)


29
# File 'lib/spotted/models/linked_track_object.rb', line 29

optional :type, String

#uriString?

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

Returns:

  • (String, nil)


36
# File 'lib/spotted/models/linked_track_object.rb', line 36

optional :uri, String