Class: Spotted::Models::Browse::CategoryRetrieveResponse

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

Overview

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: , href: , icons: , name: ) ⇒ Object

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

Parameters:

  • id (String) (defaults to: )

    The [Spotify category ID](/documentation/web-api/concepts/spotify-uris-ids) of t

  • href (String) (defaults to: )

    A link to the Web API endpoint returning full details of the category.

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

    The category icon, in various sizes.

  • name (String) (defaults to: )

    The name of the category.



# File 'lib/spotted/models/browse/category_retrieve_response.rb', line 33

Instance Attribute Details

#hrefString

A link to the Web API endpoint returning full details of the category.

Returns:

  • (String)


19
# File 'lib/spotted/models/browse/category_retrieve_response.rb', line 19

required :href, String

#iconsArray<Spotted::Models::ImageObject>

The category icon, in various sizes.

Returns:



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

required :icons, -> { Spotted::Internal::Type::ArrayOf[Spotted::ImageObject] }

#idString

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

Returns:

  • (String)


13
# File 'lib/spotted/models/browse/category_retrieve_response.rb', line 13

required :id, String

#nameString

The name of the category.

Returns:

  • (String)


31
# File 'lib/spotted/models/browse/category_retrieve_response.rb', line 31

required :name, String