Class: NextBigSoundLite::Genre

Inherits:
Resource
  • Object
show all
Defined in:
lib/next_big_sound_lite/resources/genre.rb

Class Method Summary collapse

Methods inherited from Resource

get, idfy, parse, post

Class Method Details

.artist(id) ⇒ Object



9
10
11
12
13
# File 'lib/next_big_sound_lite/resources/genre.rb', line 9

def self.artist(id)
  get resource["artist/#{id}.json"] do |response|
    idfy response
  end
end

.resourceObject



5
6
7
# File 'lib/next_big_sound_lite/resources/genre.rb', line 5

def self.resource
  super 'genres'
end