Module: Fleetly::Activity
- Included in:
- Client
- Defined in:
- lib/fleetly/activity.rb
Instance Method Summary collapse
-
#get_activities(options = {}) ⇒ Hashie::Mash
Retrieve Activities.
-
#get_activity(id) ⇒ Hashie::Mash
Retrieve Activity details given the ID.
Instance Method Details
#get_activities(options = {}) ⇒ Hashie::Mash
Retrieve Activities
30 31 32 33 34 35 36 |
# File 'lib/fleetly/activity.rb', line 30 def get_activities(={}) = {} [:oauth_token] = token activity_response = get("/api/v1/activities/search", ) activity_response if activity_response.result? end |
#get_activity(id) ⇒ Hashie::Mash
Retrieve Activity details given the ID
12 13 14 15 16 17 18 |
# File 'lib/fleetly/activity.rb', line 12 def get_activity(id) = {} [:oauth_token] = token activity_response = get("/api/v1/activities/#{id}", ) activity_response if activity_response.result? end |