Class: Reve::Classes::MapJump

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

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

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ MapJump

:nodoc:



954
955
956
957
# File 'lib/reve/classes.rb', line 954

def initialize(elem) #:nodoc:
  @system_id = elem['solarSystemID'].to_i
  @jumps     = elem['shipJumps'].to_i
end

Instance Attribute Details

#jumpsObject (readonly)

Returns the value of attribute jumps.



953
954
955
# File 'lib/reve/classes.rb', line 953

def jumps
  @jumps
end

#system_idObject (readonly)

Returns the value of attribute system_id.



953
954
955
# File 'lib/reve/classes.rb', line 953

def system_id
  @system_id
end