Class: Reve::Classes::Sovereignty
Overview
Used for the Reve::API#sovereignty call. Attributes
-
system_id ( Fixnum ) - ID of the System
-
alliance_id ( Fixnum ) - ID of the Alliance that controls the System
-
constellation_sovereignty ( Fixnum ) - ID of the Alliance that has Constellation Sovereignty for a given System’s Constellation
-
level ( Fixnum ) - Not sure? Level of Constellation Sovereignty
-
faction_id ( Fixnum ) - ID of the Faction that controls the System
-
system_name ( String ) - Name of the System
See Also: Alliance, Reve::API#alliances TODO: Find out what constellationSovereignty is
Instance Attribute Summary collapse
-
#alliance_id ⇒ Object
readonly
Returns the value of attribute alliance_id.
-
#corporation_id ⇒ Object
readonly
Returns the value of attribute corporation_id.
-
#faction_id ⇒ Object
readonly
Returns the value of attribute faction_id.
-
#factionID ⇒ Object
readonly
Returns the value of attribute factionID.
-
#system_id ⇒ Object
readonly
Returns the value of attribute system_id.
-
#system_name ⇒ Object
readonly
Returns the value of attribute system_name.
Instance Method Summary collapse
-
#initialize(elem) ⇒ Sovereignty
constructor
:nodoc:.
Constructor Details
#initialize(elem) ⇒ Sovereignty
:nodoc:
1288 1289 1290 1291 1292 1293 1294 |
# File 'lib/reve/classes.rb', line 1288 def initialize(elem) #:nodoc: @system_id = elem['solarSystemID'].to_i @alliance_id = elem['allianceID'] == '0' ? nil : elem['allianceID'].to_i @corporation_id = elem['corporationID'] == '0' ? nil : elem['corporationID'].to_i @faction_id = elem['factionID'] == '0' ? nil : elem['factionID'].to_i @system_name = elem['solarSystemName'] end |
Instance Attribute Details
#alliance_id ⇒ Object (readonly)
Returns the value of attribute alliance_id.
1287 1288 1289 |
# File 'lib/reve/classes.rb', line 1287 def alliance_id @alliance_id end |
#corporation_id ⇒ Object (readonly)
Returns the value of attribute corporation_id.
1287 1288 1289 |
# File 'lib/reve/classes.rb', line 1287 def corporation_id @corporation_id end |
#faction_id ⇒ Object (readonly)
Returns the value of attribute faction_id.
1287 1288 1289 |
# File 'lib/reve/classes.rb', line 1287 def faction_id @faction_id end |
#factionID ⇒ Object (readonly)
Returns the value of attribute factionID.
1287 1288 1289 |
# File 'lib/reve/classes.rb', line 1287 def factionID @factionID end |
#system_id ⇒ Object (readonly)
Returns the value of attribute system_id.
1287 1288 1289 |
# File 'lib/reve/classes.rb', line 1287 def system_id @system_id end |
#system_name ⇒ Object (readonly)
Returns the value of attribute system_name.
1287 1288 1289 |
# File 'lib/reve/classes.rb', line 1287 def system_name @system_name end |