Class: Roundtrip::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/roundtrip/cli.rb

Instance Method Summary collapse

Instance Method Details

#end(trip_id) ⇒ Object



14
15
16
17
# File 'lib/roundtrip/cli.rb', line 14

def end(trip_id)
  t = core.end(trip_id)
  say t.to_h
end

#start(route) ⇒ Object



8
9
10
11
# File 'lib/roundtrip/cli.rb', line 8

def start(route)
  t = core.start(route)
  say t.to_h
end