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:



710
711
712
713
714
715
716
717
# File 'lib/reve/classes.rb', line 710

def initialize(elem) #:nodoc:
  @id = elem['stationID'].to_i
  @name = elem['stationName']
  @type_id = elem['stationTypeID'].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



709
710
711
# File 'lib/reve/classes.rb', line 709

def corporation_id
  @corporation_id
end

#corporation_nameObject (readonly)

Returns the value of attribute corporation_name



709
710
711
# File 'lib/reve/classes.rb', line 709

def corporation_name
  @corporation_name
end

#idObject (readonly)

Returns the value of attribute id



709
710
711
# File 'lib/reve/classes.rb', line 709

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name



709
710
711
# File 'lib/reve/classes.rb', line 709

def name
  @name
end

#system_idObject (readonly)

Returns the value of attribute system_id



709
710
711
# File 'lib/reve/classes.rb', line 709

def system_id
  @system_id
end

#type_idObject (readonly)

Returns the value of attribute type_id



709
710
711
# File 'lib/reve/classes.rb', line 709

def type_id
  @type_id
end