Class: Reve::Classes::FactionWar
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
-
#against_id ⇒ Object
readonly
Returns the value of attribute against_id.
-
#against_name ⇒ Object
readonly
Returns the value of attribute against_name.
-
#faction_id ⇒ Object
readonly
Returns the value of attribute faction_id.
-
#faction_name ⇒ Object
readonly
Returns the value of attribute faction_name.
Instance Method Summary collapse
-
#initialize(elem) ⇒ FactionWar
constructor
:nodoc:.
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_id ⇒ Object (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_name ⇒ Object (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_id ⇒ Object (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_name ⇒ Object (readonly)
Returns the value of attribute faction_name.
153 154 155 |
# File 'lib/reve/classes.rb', line 153 def faction_name @faction_name end |