class Natour::Station
Attributes
distance[R]
label[R]
type[R]
Public Class Methods
new(label, type, distance)
click to toggle source
# File lib/natour/station.rb, line 7 def initialize(label, type, distance) @label = label @type = type @distance = distance end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/natour/station.rb, line 15 def <=>(other) [@label, @type, @distance] <=> [other.label, other.type, other.distance] end
hash()
click to toggle source
# File lib/natour/station.rb, line 20 def hash [@label, @type, @distance].hash end