Class: SpotifyWebApi::MeEpisodesRequest1
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- SpotifyWebApi::MeEpisodesRequest1
- Defined in:
- lib/spotify_web_api/models/me_episodes_request1.rb
Overview
MeEpisodesRequest1 Model.
Instance Attribute Summary collapse
-
#ids ⇒ Array[String]
A JSON array of the [Spotify IDs](/documentation/web-api/concepts/spotify-uris-ids).
Class Method Summary collapse
-
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
-
.names ⇒ Object
A mapping from model property names to API property names.
-
.nullables ⇒ Object
An array for nullable fields.
-
.optionals ⇒ Object
An array for optional fields.
Instance Method Summary collapse
-
#initialize(ids = SKIP) ⇒ MeEpisodesRequest1
constructor
A new instance of MeEpisodesRequest1.
Methods inherited from BaseModel
Constructor Details
#initialize(ids = SKIP) ⇒ MeEpisodesRequest1
Returns a new instance of MeEpisodesRequest1.
39 40 41 |
# File 'lib/spotify_web_api/models/me_episodes_request1.rb', line 39 def initialize(ids = SKIP) @ids = ids unless ids == SKIP end |
Instance Attribute Details
#ids ⇒ Array[String]
A JSON array of the [Spotify IDs](/documentation/web-api/concepts/spotify-uris-ids). <br/>A maximum of 50 items can be specified in one request. _Note: if the ‘ids` parameter is present in the query string, any IDs listed here in the body will be ignored._
18 19 20 |
# File 'lib/spotify_web_api/models/me_episodes_request1.rb', line 18 def ids @ids end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
44 45 46 47 48 49 50 51 52 |
# File 'lib/spotify_web_api/models/me_episodes_request1.rb', line 44 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. ids = hash.key?('ids') ? hash['ids'] : SKIP # Create object from extracted values. MeEpisodesRequest1.new(ids) end |
.names ⇒ Object
A mapping from model property names to API property names.
21 22 23 24 25 |
# File 'lib/spotify_web_api/models/me_episodes_request1.rb', line 21 def self.names @_hash = {} if @_hash.nil? @_hash['ids'] = 'ids' @_hash end |
.nullables ⇒ Object
An array for nullable fields
35 36 37 |
# File 'lib/spotify_web_api/models/me_episodes_request1.rb', line 35 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
28 29 30 31 32 |
# File 'lib/spotify_web_api/models/me_episodes_request1.rb', line 28 def self.optionals %w[ ids ] end |