class Spotify::Models::Full::Track
Attributes
album[R]
external_ids[R]
popularity[R]
Public Class Methods
new(args = {})
click to toggle source
Sets the arguments to its variables.
@param [Hash] args the arguments that will be placed on each variable.
@return [Full::Track] a full track object.
Calls superclass method
Spotify::Models::Track::new
# File lib/spotify/models/full/track.rb, line 16 def initialize(args = {}) super(args) args = Hash(args).with_indifferent_access # Objects album = Spotify::Models::Simplified::Album.new(args[:album]) external_ids = Spotify::Models::ExternalID.new(args[:external_ids]) @album = album @external_ids = external_ids @popularity = args[:popularity] end