Class: NBS::Track

Inherits:
Object
  • Object
show all
Defined in:
lib/next-big-sound-lite.rb

Class Method Summary collapse

Class Method Details

.artist(id) ⇒ Object



85
86
87
88
# File 'lib/next-big-sound-lite.rb', line 85

def self.artist(id)
  res = @resource["artist/#{id}.json"].get
  JSON.parse(res)
end

.profile(id) ⇒ Object



90
91
92
93
# File 'lib/next-big-sound-lite.rb', line 90

def self.profile(id)
  res = @resource["profile/#{id}.json"].get
  JSON.parse(res)
end