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

- (Starbase) initialize(elem)

: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

- (Object) id (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

- (Object) moon_id (readonly)

Returns the value of attribute moon_id



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

def moon_id
  @moon_id
end

- (Object) online_timestamp (readonly)

Returns the value of attribute online_timestamp



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

def online_timestamp
  @online_timestamp
end

- (Object) state (readonly)

Returns the value of attribute state



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

def state
  @state
end

- (Object) state_timestamp (readonly)

Returns the value of attribute state_timestamp



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

def state_timestamp
  @state_timestamp
end

- (Object) system_id (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

- (Object) type_id (readonly)

Returns the value of attribute type_id



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

def type_id
  @type_id
end

- (Object) type_name (readonly)

Returns the value of attribute type_name



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

def type_name
  @type_name
end