Class: Roster
- Inherits:
-
Object
- Object
- Roster
- Defined in:
- lib/sightstone/team.rb
Instance Attribute Summary (collapse)
-
- (Object) memberList
Returns the value of attribute memberList.
-
- (Object) ownerId
Returns the value of attribute ownerId.
Instance Method Summary (collapse)
-
- (Roster) initialize(data)
constructor
A new instance of Roster.
Constructor Details
- (Roster) initialize(data)
Returns a new instance of Roster
31 32 33 34 35 36 37 |
# File 'lib/sightstone/team.rb', line 31 def initialize(data) @ownerId = data['ownerId'] @memberList = [] data['memberList'].each do |m| memberList << Member.new(m) end end |
Instance Attribute Details
- (Object) memberList
Returns the value of attribute memberList
30 31 32 |
# File 'lib/sightstone/team.rb', line 30 def memberList @memberList end |
- (Object) ownerId
Returns the value of attribute ownerId
30 31 32 |
# File 'lib/sightstone/team.rb', line 30 def ownerId @ownerId end |