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
-
#initialize(data = {}) ⇒ GuildClass
constructor
A new instance of GuildClass.
Methods inherited from ResponseData
#as_json, #from_json, #to_json
Constructor Details
#initialize(data = {}) ⇒ GuildClass
Returns a new instance of GuildClass.
11 12 13 14 15 16 17 18 |
# File 'lib/wowapi/modules/guild.rb', line 11 def initialize(data={}) super if @table @table[:members].map!{ |player_hash| Wowapi::Modules::Character::CharacterClass.new(player_hash) } if @table[:members] end end |