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:



973
974
975
976
# File 'lib/reve/classes.rb', line 973

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.



972
973
974
# File 'lib/reve/classes.rb', line 972

def jumps
  @jumps
end

#system_idObject (readonly)

Returns the value of attribute system_id.



972
973
974
# File 'lib/reve/classes.rb', line 972

def system_id
  @system_id
end