Class: Reve::Classes::FactionVictoryPoints

Inherits:
FactionWarVictoryPoints show all
Defined in:
lib/reve/classes.rb

Instance Attribute Summary collapse

Attributes inherited from FactionWarVictoryPoints

#victory_points

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ FactionVictoryPoints

:nodoc:



260
261
262
263
264
# File 'lib/reve/classes.rb', line 260

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.



259
260
261
# File 'lib/reve/classes.rb', line 259

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



259
260
261
# File 'lib/reve/classes.rb', line 259

def name
  @name
end