Class: Reve::Classes::ConqurableStation

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

Overview

Holds the result of the Reve::API#conqurable_stations call. Attributes

  • id ( Fixnum ) - ID of the ConqurableStation

  • name ( String ) - Name of the ConqurableStation

  • type_id ( Fixnum ) - What kind of ConqurableStation Station it is (Refer to CCP database dump invtypes).

  • system_id ( Fixnum ) - ID of the system where the ConqurableStation is located.

  • corporation_id ( Fixnum ) - ID of the Corporation that owns the ConqurableStation

  • corporation_name ( String ) - Name of the Corporation that owns the ConqurableStation.

See Also: Sovereignty, Reve::API#conqurable_stations, Reve::API#sovereignty, Reve::API#corporation_sheet, CorporationSheet

Direct Known Subclasses

ConquerableStation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ ConqurableStation

:nodoc:



666
667
668
669
670
671
672
673
674
# File 'lib/reve/classes.rb', line 666

def initialize(elem) #:nodoc:
  @id = elem['stationID'].to_i
  @name = elem['stationName']
  @type_id = elem['stationTypeID'].to_i
  @system_id = elem['solarSystemID'].to_i
  @corporation_id = elem['corporationID'].to_i
  @corporation_name = elem['corporationName']
  @system_id = elem['solarSystemID'].to_i
end

Instance Attribute Details

#corporation_idObject (readonly)

Returns the value of attribute corporation_id.



665
666
667
# File 'lib/reve/classes.rb', line 665

def corporation_id
  @corporation_id
end

#corporation_nameObject (readonly)

Returns the value of attribute corporation_name.



665
666
667
# File 'lib/reve/classes.rb', line 665

def corporation_name
  @corporation_name
end

#idObject (readonly)

Returns the value of attribute id.



665
666
667
# File 'lib/reve/classes.rb', line 665

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



665
666
667
# File 'lib/reve/classes.rb', line 665

def name
  @name
end

#system_idObject (readonly)

Returns the value of attribute system_id.



665
666
667
# File 'lib/reve/classes.rb', line 665

def system_id
  @system_id
end

#type_idObject (readonly)

Returns the value of attribute type_id.



665
666
667
# File 'lib/reve/classes.rb', line 665

def type_id
  @type_id
end