Class: Wowr::Classes::GuildBankLog

Inherits:
GuildBank show all
Defined in:
lib/wowr/guild_bank.rb

Overview

Consists of multiple groups, each with 1000 entries

Instance Attribute Summary collapse

Attributes inherited from GuildBank

#bags, #info, #money, #motd, #ranks

Attributes inherited from Guild

#name, #realm, #url

Instance Method Summary collapse

Constructor Details

#initialize(elem, api = nil) ⇒ GuildBankLog

Returns a new instance of GuildBankLog.



59
60
61
62
63
64
65
66
# File 'lib/wowr/guild_bank.rb', line 59

def initialize(elem, api = nil)
	super(elem)
	
	@entries = []
	(elem%'banklogs'/:banklog).each do |entry|
		@entries << GuildBankLogEntry.new(entry, self, api)
	end
end

Instance Attribute Details

#entriesObject (readonly)

Returns the value of attribute entries.



57
58
59
# File 'lib/wowr/guild_bank.rb', line 57

def entries
  @entries
end