Class: Spotted::Models::SearchRetrieveResponse

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

Overview

Defined Under Namespace

Classes: Albums, Artists, Audiobooks, Episodes, Shows, Tracks

Instance Attribute Summary collapse

Class Method 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(href: , items: , limit: , next_: , offset: , previous: , total: ) ⇒ Object

Some parameter documentations has been truncated, see Shows for more details.

Parameters:

  • href (String) (defaults to: )

    A link to the Web API endpoint returning the full result of the request

  • items (Array<Spotted::Models::ShowBase>) (defaults to: )
  • limit (Integer) (defaults to: )

    The maximum number of items in the response (as set in the query or by default).

  • next_ (String, nil) (defaults to: )

    URL to the next page of items. ( ‘null` if none)

  • offset (Integer) (defaults to: )

    The offset of the items returned (as set in the query or by default)

  • previous (String, nil) (defaults to: )

    URL to the previous page of items. ( ‘null` if none)

  • total (Integer) (defaults to: )

    The total number of items available to return.



# File 'lib/spotted/models/search_retrieve_response.rb', line 42

Instance Attribute Details

#albumsSpotted::Models::SearchRetrieveResponse::Albums?



10
# File 'lib/spotted/models/search_retrieve_response.rb', line 10

optional :albums, -> { Spotted::Models::SearchRetrieveResponse::Albums }

#artistsSpotted::Models::SearchRetrieveResponse::Artists?



15
# File 'lib/spotted/models/search_retrieve_response.rb', line 15

optional :artists, -> { Spotted::Models::SearchRetrieveResponse::Artists }

#audiobooksSpotted::Models::SearchRetrieveResponse::Audiobooks?



20
# File 'lib/spotted/models/search_retrieve_response.rb', line 20

optional :audiobooks, -> { Spotted::Models::SearchRetrieveResponse::Audiobooks }

#episodesSpotted::Models::SearchRetrieveResponse::Episodes?



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

optional :episodes, -> { Spotted::Models::SearchRetrieveResponse::Episodes }

#playlistsSpotted::Models::PagingPlaylistObject?



30
# File 'lib/spotted/models/search_retrieve_response.rb', line 30

optional :playlists, -> { Spotted::PagingPlaylistObject }

#showsSpotted::Models::SearchRetrieveResponse::Shows?



35
# File 'lib/spotted/models/search_retrieve_response.rb', line 35

optional :shows, -> { Spotted::Models::SearchRetrieveResponse::Shows }

#tracksSpotted::Models::SearchRetrieveResponse::Tracks?



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

optional :tracks, -> { Spotted::Models::SearchRetrieveResponse::Tracks }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/spotted/models/search_retrieve_response.rb', line 274