Class: Bandcamp::Band

Inherits:
Object
  • Object
show all
Includes:
Methodical
Defined in:
lib/bandcamp/band.rb

Instance Method Summary collapse

Constructor Details

#initialize(attrs_hash) ⇒ Band

Returns a new instance of Band.



8
9
10
11
# File 'lib/bandcamp/band.rb', line 8

def initialize attrs_hash
  @attrs_hash = attrs_hash
  to_methods @attrs_hash
end

Instance Method Details

#to_jsonObject



13
14
15
# File 'lib/bandcamp/band.rb', line 13

def to_json
  MultiJson.encode @attrs_hash
end