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)

  • type_name ( String ) - Name of the type of Starbase

  • id ( Fixnum ) - ID of the Starbase

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

  • system_name ( Starbase ) - Name of the System where the Starbase is

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ Starbase

:nodoc:



1268
1269
1270
1271
1272
1273
1274
# File 'lib/reve/classes.rb', line 1268

def initialize(elem) #:nodoc:
  @type_id = elem['typeID'].to_i
  @type_name = elem['typeName']
  @id = elem['itemID'].to_i
  @system_id = elem['locationID'].to_i
  @system_name = elem['locationName']
end

Instance Attribute Details

#idObject (readonly) Also known as: item_id

Returns the value of attribute id.



1264
1265
1266
# File 'lib/reve/classes.rb', line 1264

def id
  @id
end

#system_idObject (readonly) Also known as: location_id

Returns the value of attribute system_id.



1264
1265
1266
# File 'lib/reve/classes.rb', line 1264

def system_id
  @system_id
end

#system_nameObject (readonly) Also known as: location_name

Returns the value of attribute system_name.



1264
1265
1266
# File 'lib/reve/classes.rb', line 1264

def system_name
  @system_name
end

#type_idObject (readonly)

Returns the value of attribute type_id.



1264
1265
1266
# File 'lib/reve/classes.rb', line 1264

def type_id
  @type_id
end

#type_nameObject (readonly)

Returns the value of attribute type_name.



1264
1265
1266
# File 'lib/reve/classes.rb', line 1264

def type_name
  @type_name
end