Class: Bandcamp::Band
- Inherits:
-
Object
- Object
- Bandcamp::Band
- Includes:
- Methodical
- Defined in:
- lib/bandcamp/band.rb
Instance Method Summary collapse
-
#initialize(attrs_hash) ⇒ Band
constructor
A new instance of Band.
- #to_json ⇒ Object
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_json ⇒ Object
13 14 15 |
# File 'lib/bandcamp/band.rb', line 13 def to_json MultiJson.encode @attrs_hash end |