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:



194
195
196
197
198
# File 'lib/reve/classes.rb', line 194

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.



193
194
195
# File 'lib/reve/classes.rb', line 193

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



193
194
195
# File 'lib/reve/classes.rb', line 193

def name
  @name
end