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:



233
234
235
236
237
# File 'lib/reve/classes.rb', line 233

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.



232
233
234
# File 'lib/reve/classes.rb', line 232

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



232
233
234
# File 'lib/reve/classes.rb', line 232

def name
  @name
end