class Spotify::Models::Full::Artist
Attributes
followers[R]
genres[R]
images[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::Artist] a full album object.
Calls superclass method
Spotify::Models::Artist::new
# File lib/spotify/models/full/artist.rb, line 16 def initialize(args = {}) super(args) args = Hash(args).with_indifferent_access # Arrays images = Array(args[:images]).map { |i| Spotify::Models::Image.new(i) } # Objects follower = Spotify::Models::Follower.new(args[:followers]) @followers = follower @genres = args[:genres] @images = images @popularity = args[:popularity] end