Class: Reve::Classes::FactionWar

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

Overview

Represents a single FactionWar between two Factions (e.g., Gallente v. Caldari) Attributes:

  • faction_id ( Fixnum ) - ID of the belligerant Faction

  • faction_name ( String ) - Name of the belligerant Faction.

  • against_id ( Fixnum ) - ID of the Faction that this war is against.

  • against_name ( String ) - Name of the Faction that this war is against.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ FactionWar

:nodoc:



154
155
156
157
158
159
# File 'lib/reve/classes.rb', line 154

def initialize(elem) #:nodoc:
  @faction_id = elem['factionID'].to_i
  @faction_name = elem['factionName']
  @against_id = elem['againstID'].to_i
  @against_name = elem['againstName']
end

Instance Attribute Details

#against_idObject (readonly)

Returns the value of attribute against_id.



153
154
155
# File 'lib/reve/classes.rb', line 153

def against_id
  @against_id
end

#against_nameObject (readonly)

Returns the value of attribute against_name.



153
154
155
# File 'lib/reve/classes.rb', line 153

def against_name
  @against_name
end

#faction_idObject (readonly)

Returns the value of attribute faction_id.



153
154
155
# File 'lib/reve/classes.rb', line 153

def faction_id
  @faction_id
end

#faction_nameObject (readonly)

Returns the value of attribute faction_name.



153
154
155
# File 'lib/reve/classes.rb', line 153

def faction_name
  @faction_name
end