Class: Me2API::Band
Constant Summary
Constants inherited from Model
Instance Method Summary collapse
Methods inherited from Model
#[]=, #id, #initialize, #iso8601_time, #method_missing, #type, #underscore, wrap
Constructor Details
This class inherits a constructor from Me2API::Model
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Me2API::Model
Instance Method Details
#leader ⇒ Object
3 4 5 6 7 8 |
# File 'lib/me2api/model/band.rb', line 3 def leader if self[:leader].has_key?(:member) self[:leader] = Member.new(self[:leader][:member]) end self[:leader] end |