Class: Wowapi::Modules::Guild::GuildClass

Inherits:
ResponseData
  • Object
show all
Defined in:
lib/wowapi/modules/guild.rb

Overview

GuildClass - represents the Guild resource

Instance Attribute Summary

Attributes inherited from ResponseData

#raw

Instance Method Summary collapse

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