Class: Spotted::Models::Me::AudiobookListResponse

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

Overview

Defined Under Namespace

Classes: Audiobook

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(added_at: nil, audiobook: nil, published: nil) ⇒ Object

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

Parameters:

  • added_at (Time) (defaults to: nil)

    The date and time the audiobook was saved

  • audiobook (Spotted::Models::Me::AudiobookListResponse::Audiobook) (defaults to: nil)

    Information about the audiobook.

  • published (Boolean) (defaults to: nil)

    The playlist’s public/private status (if it should be added to the user’s profil



# File 'lib/spotted/models/me/audiobook_list_response.rb', line 34

Instance Attribute Details

#added_atTime?

The date and time the audiobook was saved Timestamps are returned in ISO 8601 format as Coordinated Universal Time (UTC) with a zero offset: YYYY-MM-DDTHH:MM:SSZ. If the time is imprecise (for example, the date/time of an album release), an additional field indicates the precision; see for example, release_date in an album object.

Returns:

  • (Time, nil)


16
# File 'lib/spotted/models/me/audiobook_list_response.rb', line 16

optional :added_at, Time

#audiobookSpotted::Models::Me::AudiobookListResponse::Audiobook?

Information about the audiobook.



22
# File 'lib/spotted/models/me/audiobook_list_response.rb', line 22

optional :audiobook, -> { Spotted::Models::Me::AudiobookListResponse::Audiobook }

#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)


32
# File 'lib/spotted/models/me/audiobook_list_response.rb', line 32

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