Module: HyperTrack::ApiOperations::ActionAPI
- Included in:
- HyperTrack::Action
- Defined in:
- lib/hypertrack/api_operations/action_api.rb
Instance Method Summary collapse
- #cancel(params = {}) ⇒ Object
- #complete(params = {}) ⇒ Object
- #meter(params = {}) ⇒ Object
- #mileage(params = {}) ⇒ Object
Instance Method Details
#cancel(params = {}) ⇒ Object
10 11 12 13 |
# File 'lib/hypertrack/api_operations/action_api.rb', line 10 def cancel(params={}) path = "cancel/" self.update(path, params) end |
#complete(params = {}) ⇒ Object
5 6 7 8 |
# File 'lib/hypertrack/api_operations/action_api.rb', line 5 def complete(params={}) path = "complete/" self.update(path, params) end |
#meter(params = {}) ⇒ Object
20 21 22 23 |
# File 'lib/hypertrack/api_operations/action_api.rb', line 20 def meter(params={}) path = "meter/" self.get(path, params) end |
#mileage(params = {}) ⇒ Object
15 16 17 18 |
# File 'lib/hypertrack/api_operations/action_api.rb', line 15 def mileage(params={}) path = "mileage/" self.get(path, params) end |