Class: Reve::Classes::StarbaseDetails
Overview
Returns the starbase details for the Starbase whose item id is starbase_id Attributes
-
state ( Fixnum ) - State of the starbase (Refer to CCP database dump invtypes)
-
state_timestamp ( Time ) - Depents on state
-
online_timestamp ( Time ) - Since when this starbase is online
-
general_settings ( StarbaseGeneralSettings ) - See StarbaseGeneralSettings
-
combat_settings ( StarbaseCombatSettings ) - See StarbaseCombatSettings
-
fuel ( [StarbaseFuel ] ) - See StarbaseFuel
See Also: Starbase, StarbaseGeneralSettings, StarbaseCombatSettings, StarbaseFuel, Reve::API#starbase_details, Reve::API#starbases
Instance Attribute Summary collapse
-
#combat_settings ⇒ Object
Returns the value of attribute combat_settings.
-
#fuel ⇒ Object
Returns the value of attribute fuel.
-
#general_settings ⇒ Object
Returns the value of attribute general_settings.
-
#online_timestamp ⇒ Object
readonly
Returns the value of attribute online_timestamp.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#state_timestamp ⇒ Object
readonly
Returns the value of attribute state_timestamp.
Instance Method Summary collapse
-
#initialize(elem, general_settings, combat_settings, fuel) ⇒ StarbaseDetails
constructor
:nodoc:.
Constructor Details
#initialize(elem, general_settings, combat_settings, fuel) ⇒ StarbaseDetails
:nodoc:
1382 1383 1384 1385 1386 1387 1388 1389 |
# File 'lib/reve/classes.rb', line 1382 def initialize(elem, general_settings, combat_settings, fuel) #:nodoc: @state = elem[:state].to_i @state_timestamp = elem[:state_timestamp].to_time @online_timestamp = elem[:online_timestamp].to_time @general_settings = general_settings @combat_settings = combat_settings @fuel = fuel end |
Instance Attribute Details
#combat_settings ⇒ Object
Returns the value of attribute combat_settings.
1380 1381 1382 |
# File 'lib/reve/classes.rb', line 1380 def combat_settings @combat_settings end |
#fuel ⇒ Object
Returns the value of attribute fuel.
1380 1381 1382 |
# File 'lib/reve/classes.rb', line 1380 def fuel @fuel end |
#general_settings ⇒ Object
Returns the value of attribute general_settings.
1380 1381 1382 |
# File 'lib/reve/classes.rb', line 1380 def general_settings @general_settings end |
#online_timestamp ⇒ Object (readonly)
Returns the value of attribute online_timestamp.
1379 1380 1381 |
# File 'lib/reve/classes.rb', line 1379 def @online_timestamp end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
1379 1380 1381 |
# File 'lib/reve/classes.rb', line 1379 def state @state end |
#state_timestamp ⇒ Object (readonly)
Returns the value of attribute state_timestamp.
1379 1380 1381 |
# File 'lib/reve/classes.rb', line 1379 def @state_timestamp end |