Class: Spotted::Models::AlbumListResponse::Album::Tracks

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

Overview

See Also:

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

Some parameter documentations has been truncated, see Spotted::Models::AlbumListResponse::Album::Tracks for more details.

The tracks of the album.

Parameters:

  • href (String) (defaults to: )

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

  • items (Array<Spotted::Models::SimplifiedTrackObject>) (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/album_list_response.rb', line 274

Instance Attribute Details

#hrefString

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

Returns:

  • (String)


237
# File 'lib/spotted/models/album_list_response.rb', line 237

required :href, String

#itemsArray<Spotted::Models::SimplifiedTrackObject>



242
# File 'lib/spotted/models/album_list_response.rb', line 242

required :items, -> { Spotted::Internal::Type::ArrayOf[Spotted::SimplifiedTrackObject] }

#limitInteger

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

Returns:

  • (Integer)


248
# File 'lib/spotted/models/album_list_response.rb', line 248

required :limit, Integer

#next_String?

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

Returns:

  • (String, nil)


254
# File 'lib/spotted/models/album_list_response.rb', line 254

required :next_, String, api_name: :next, nil?: true

#offsetInteger

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

Returns:

  • (Integer)


260
# File 'lib/spotted/models/album_list_response.rb', line 260

required :offset, Integer

#previousString?

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

Returns:

  • (String, nil)


266
# File 'lib/spotted/models/album_list_response.rb', line 266

required :previous, String, nil?: true

#totalInteger

The total number of items available to return.

Returns:

  • (Integer)


272
# File 'lib/spotted/models/album_list_response.rb', line 272

required :total, Integer