Class: Me2API::Band

Inherits:
Model
  • Object
show all
Defined in:
lib/me2api/model/band.rb

Constant Summary

Constants inherited from Model

Model::FROM_OR_TO_REGEX

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

#leaderObject



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