Class: Reve::Classes::FactionKills

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) ⇒ FactionKills

:nodoc:



229
230
231
232
233
# File 'lib/reve/classes.rb', line 229

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

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



228
229
230
# File 'lib/reve/classes.rb', line 228

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



228
229
230
# File 'lib/reve/classes.rb', line 228

def name
  @name
end