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:



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

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.



209
210
211
# File 'lib/reve/classes.rb', line 209

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



209
210
211
# File 'lib/reve/classes.rb', line 209

def name
  @name
end