Class: QuickTravel::RouteStop

Inherits:
Object
  • Object
show all
Includes:
InitFromHash
Defined in:
lib/quick_travel/route_stop.rb

Instance Method Summary collapse

Methods included from InitFromHash

#define_readers, #initialize, #to_hash

Instance Method Details

#stopObject



7
8
9
10
11
12
13
14
15
16
# File 'lib/quick_travel/route_stop.rb', line 7

def stop
  Stop.new({
    id: stop_id,
    name: name,
    code: code,
    address: address,
    longitude: longitude,
    latitude: latitude
  })
end