Class: Spotted::Models::Users::PlaylistCreateResponse::Items

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

Overview

See Also:

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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

This class inherits a constructor from Spotted::Internal::Type::BaseModel

Instance Attribute Details

#hrefString

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

Returns:

  • (String)


155
# File 'lib/spotted/models/users/playlist_create_response.rb', line 155

required :href, String

#itemsArray<Spotted::Models::PlaylistTrackObject>?

Returns:



190
# File 'lib/spotted/models/users/playlist_create_response.rb', line 190

optional :items, -> { Spotted::Internal::Type::ArrayOf[Spotted::PlaylistTrackObject] }

#limitInteger

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

Returns:

  • (Integer)


161
# File 'lib/spotted/models/users/playlist_create_response.rb', line 161

required :limit, Integer

#next_String?

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

Returns:

  • (String, nil)


167
# File 'lib/spotted/models/users/playlist_create_response.rb', line 167

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)


173
# File 'lib/spotted/models/users/playlist_create_response.rb', line 173

required :offset, Integer

#previousString?

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

Returns:

  • (String, nil)


179
# File 'lib/spotted/models/users/playlist_create_response.rb', line 179

required :previous, String, nil?: true

#publishedBoolean?

The playlist’s public/private status (if it should be added to the user’s profile or not): ‘true` the playlist will be public, `false` the playlist will be private, `null` the playlist status is not relevant. For more about public/private status, see [Working with Playlists](/documentation/web-api/concepts/playlists)

Returns:

  • (Boolean, nil)


200
# File 'lib/spotted/models/users/playlist_create_response.rb', line 200

optional :published, Spotted::Internal::Type::Boolean

#totalInteger

The total number of items available to return.

Returns:

  • (Integer)


185
# File 'lib/spotted/models/users/playlist_create_response.rb', line 185

required :total, Integer