Module: Fleetly::Logitem
- Included in:
- Client
- Defined in:
- lib/fleetly/logitem.rb
Instance Method Summary collapse
-
#get_logitem_details(id) ⇒ Hashie::Mash
Retrieve Logitem details given the ID.
-
#get_logitems(options = {}) ⇒ Hashie::Mash
Retrieve Logitems.
Instance Method Details
#get_logitem_details(id) ⇒ Hashie::Mash
Retrieve Logitem details given the ID
12 13 14 15 16 17 18 |
# File 'lib/fleetly/logitem.rb', line 12 def get_logitem_details(id) = {} [:oauth_token] = token activity_response = get("/api/v1/logitems/#{id}", ) activity_response if activity_response.result? end |
#get_logitems(options = {}) ⇒ Hashie::Mash
Retrieve Logitems
27 28 29 30 31 32 33 |
# File 'lib/fleetly/logitem.rb', line 27 def get_logitems(={}) = {} [:oauth_token] = token activity_response = get("/api/v1/logitems/search", ) activity_response if activity_response.result? end |