Module: Lelylan::Client::History
- Included in:
- Lelylan::Client
- Defined in:
- lib/lelylan/client/history.rb
Instance Method Summary collapse
-
#all_histories(params = {}) ⇒ Object
Public: Returns a list of histories related to owned devices.
-
#find_history(id) ⇒ Object
Public: Returns extended information for a given history identified from its ID.
Instance Method Details
#all_histories(params = {}) ⇒ Object
Public: Returns a list of histories related to owned devices.
params - The Hash used to refine the search (default: {}).
Returns Array List of histories.
23 24 25 |
# File 'lib/lelylan/client/history.rb', line 23 def all_histories(params = {}) get('/histories', params) end |
#find_history(id) ⇒ Object
Public: Returns extended information for a given history identified from its ID.
id - A String that represent the history ID.
Returns Hashie The history.
12 13 14 |
# File 'lib/lelylan/client/history.rb', line 12 def find_history(id) get("/histories/#{id}") end |