Class: Spotted::Models::Me::TrackSaveParams::TimestampedID
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Spotted::Models::Me::TrackSaveParams::TimestampedID
- Defined in:
- lib/spotted/models/me/track_save_params.rb
Instance Attribute Summary collapse
-
#added_at ⇒ Time
The timestamp when the track was added to the library.
-
#id ⇒ String
The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the track.
Instance Method Summary collapse
-
#initialize(id: , added_at: ) ⇒ Object
constructor
Some parameter documentations has been truncated, see TimestampedID for more details.
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(id: , added_at: ) ⇒ Object
Some parameter documentations has been truncated, see Spotted::Models::Me::TrackSaveParams::TimestampedID for more details.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/spotted/models/me/track_save_params.rb', line 45 class TimestampedID < Spotted::Internal::Type::BaseModel # @!attribute id # The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the # track. # # @return [String] required :id, String # @!attribute added_at # The timestamp when the track was added to the library. Use ISO 8601 format with # UTC timezone (e.g., `2023-01-15T14:30:00Z`). You can specify past timestamps to # insert tracks at specific positions in the library's chronological order. The # API uses minute-level granularity for ordering, though the timestamp supports # millisecond precision. # # @return [Time] required :added_at, Time # @!method initialize(id:, added_at:) # Some parameter documentations has been truncated, see # {Spotted::Models::Me::TrackSaveParams::TimestampedID} for more details. # # @param id [String] The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the track # # @param added_at [Time] The timestamp when the track was added to the library. Use ISO 8601 format with end |
Instance Attribute Details
#added_at ⇒ Time
The timestamp when the track was added to the library. Use ISO 8601 format with UTC timezone (e.g., ‘2023-01-15T14:30:00Z`). You can specify past timestamps to insert tracks at specific positions in the library’s chronological order. The API uses minute-level granularity for ordering, though the timestamp supports millisecond precision.
61 |
# File 'lib/spotted/models/me/track_save_params.rb', line 61 required :added_at, Time |
#id ⇒ String
The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the track.
51 |
# File 'lib/spotted/models/me/track_save_params.rb', line 51 required :id, String |