class Spotify::Models::Category

Attributes

href[R]
icons[R]
id[R]
name[R]

Public Class Methods

new(args = {}) click to toggle source
# File lib/spotify/models/category.rb, line 9
def initialize(args = {})
  args  = args.with_indifferent_access
  icons = args[:icons].map { |icon| Spotify::Models::Image.new(icon) }

  @href  = args[:href]
  @icons = icons
  @id    = args[:id]
  @name  = args[:name]
end