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, #initialize, #to_json

Constructor Details

This class inherits a constructor from Wowapi::ResponseData

Instance Method Details

#membersObject

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