Class: Spotted::Models::Me::AlbumListResponse

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

Overview

Defined Under Namespace

Classes: Album

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, album: nil) ⇒ Object

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

Parameters:



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

Instance Attribute Details

#added_atTime?

The date and time the album 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/album_list_response.rb', line 16

optional :added_at, Time

#albumSpotted::Models::Me::AlbumListResponse::Album?

Information about the album.



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

optional :album, -> { Spotted::Models::Me::AlbumListResponse::Album }