Class: Reve::Classes::CharacterFactionKills

Inherits:
FactionWarKills show all
Defined in:
lib/reve/classes.rb

Instance Attribute Summary collapse

Attributes inherited from FactionWarKills

#kills

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ CharacterFactionKills

:nodoc:



213
214
215
216
217
# File 'lib/reve/classes.rb', line 213

def initialize(elem) #:nodoc:
  super(elem)
  @name = elem['characterName']
  @id = elem['characterID'].to_i
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



212
213
214
# File 'lib/reve/classes.rb', line 212

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



212
213
214
# File 'lib/reve/classes.rb', line 212

def name
  @name
end