Class: Reve::Classes::Starbase

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

Overview

Used for a list of Starbases, Reve::API#starbases Attributes

  • type_id ( Fixnum ) - Type of Starbase (Refer to CCP database dump invtypes)

  • id ( Fixnum ) - ID of the Starbase

  • system_id ( Fixnum ) - ID of the System where the Starbase is

  • moon_id ( Fixnum ) - ID of the Moon where the Starbase is

  • state ( Fixnum ) - Mode of the POS. See Known POS States, below, see: wiki.eve-id.net/APIv2_Corp_StarbaseList_XML

  • state_timestamp ( Time ) - Depends on the state, for example cycle time or Reinforced until

  • online_timestamp ( Time ) - Since when the starbase is online

See Also: StarbaseFuel, Reve::API#starbases, Reve::API#starbase_fuel

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ Starbase

:nodoc:



1311
1312
1313
1314
1315
1316
1317
1318
1319
# File 'lib/reve/classes.rb', line 1311

def initialize(elem) #:nodoc:
  @type_id = elem['typeID'].to_i
  @id = elem['itemID'].to_i
  @system_id = elem['locationID'].to_i
  @moon_id = elem['moonID'].to_i
  @state = elem['state'].to_i
  @state_timestamp = elem['stateTimestamp'].to_time
  @online_timestamp = elem['onlineTimestamp'].to_time
end

Instance Attribute Details

#idObject (readonly) Also known as: item_id

Returns the value of attribute id.



1308
1309
1310
# File 'lib/reve/classes.rb', line 1308

def id
  @id
end

#moon_idObject (readonly)

Returns the value of attribute moon_id.



1308
1309
1310
# File 'lib/reve/classes.rb', line 1308

def moon_id
  @moon_id
end

#online_timestampObject (readonly)

Returns the value of attribute online_timestamp.



1308
1309
1310
# File 'lib/reve/classes.rb', line 1308

def online_timestamp
  @online_timestamp
end

#stateObject (readonly)

Returns the value of attribute state.



1308
1309
1310
# File 'lib/reve/classes.rb', line 1308

def state
  @state
end

#state_timestampObject (readonly)

Returns the value of attribute state_timestamp.



1308
1309
1310
# File 'lib/reve/classes.rb', line 1308

def state_timestamp
  @state_timestamp
end

#system_idObject (readonly) Also known as: location_id

Returns the value of attribute system_id.



1308
1309
1310
# File 'lib/reve/classes.rb', line 1308

def system_id
  @system_id
end

#type_idObject (readonly)

Returns the value of attribute type_id.



1308
1309
1310
# File 'lib/reve/classes.rb', line 1308

def type_id
  @type_id
end

#type_nameObject (readonly)

Returns the value of attribute type_name.



1308
1309
1310
# File 'lib/reve/classes.rb', line 1308

def type_name
  @type_name
end