Class: Wowapi::Modules::Guild::GuildClass
- Inherits:
-
ResponseData
- Object
- OpenStruct
- ResponseData
- Wowapi::Modules::Guild::GuildClass
- Defined in:
- lib/wowapi/modules/guild.rb
Overview
GuildClass - represents the Guild resource
Instance Attribute Summary
Attributes inherited from ResponseData
Instance Method Summary collapse
-
#members ⇒ Object
This MIGHT require refactorization tested with 588 members with no hickups, but potentially unoptimal (perhaps we should store it in memory as instance variable?).
Methods inherited from ResponseData
#as_json, #from_json, #initialize, #to_json
Constructor Details
This class inherits a constructor from Wowapi::ResponseData
Instance Method Details
#members ⇒ Object
This MIGHT require refactorization tested with 588 members with no hickups, but potentially unoptimal (perhaps we should store it in memory as instance variable?)
17 18 19 20 21 |
# File 'lib/wowapi/modules/guild.rb', line 17 def members @table[:members].map{ |player_hash| Wowapi::Modules::Character::CharacterClass.new(player_hash) } if @table[:members] end |