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:



215
216
217
218
219
# File 'lib/reve/classes.rb', line 215

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.



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

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end