Class: Reve::Classes::MapJump
Overview
Used for the Reve::API#map_jumps method. If there are no jumps it is not listed. Attributes
-
system_id ( Fixnum ) - ID of the System
-
jumps ( Fixnum ) - Number of jumps through the System
See Also: MapKill, Reve::API#map_jumps
Instance Attribute Summary collapse
-
#jumps ⇒ Object
readonly
Returns the value of attribute jumps.
-
#system_id ⇒ Object
readonly
Returns the value of attribute system_id.
Instance Method Summary collapse
-
#initialize(elem) ⇒ MapJump
constructor
:nodoc:.
Constructor Details
#initialize(elem) ⇒ MapJump
:nodoc:
930 931 932 933 |
# File 'lib/reve/classes.rb', line 930 def initialize(elem) #:nodoc: @system_id = elem['solarSystemID'].to_i @jumps = elem['shipJumps'].to_i end |
Instance Attribute Details
#jumps ⇒ Object (readonly)
Returns the value of attribute jumps.
929 930 931 |
# File 'lib/reve/classes.rb', line 929 def jumps @jumps end |
#system_id ⇒ Object (readonly)
Returns the value of attribute system_id.
929 930 931 |
# File 'lib/reve/classes.rb', line 929 def system_id @system_id end |