Class: RfidApi::Device
- Defined in:
- lib/rfid_api/device.rb
Instance Attribute Summary
Attributes inherited from Client
Instance Method Summary collapse
Methods inherited from Client
all, create, #datetime, #destroy, destroy, #destroyed?, #errors, #errors=, find, #initialize, model_name, #new_record?, #persisted?, #read_attribute, resource_name, resource_name=, #save, #to_key, #to_param, update, #valid?, #write_attribute
Constructor Details
This class inherits a constructor from RfidApi::Client
Instance Method Details
#actions(options = {}) ⇒ Object
9 10 11 |
# File 'lib/rfid_api/device.rb', line 9 def actions( = {}) resources get("/#{plural_name}/#{_id}/actions.#{format}", :query => ) end |
#events(options = {}) ⇒ Object
5 6 7 |
# File 'lib/rfid_api/device.rb', line 5 def events( = {}) resources get("/#{plural_name}/#{_id}/events.#{format}", :query => ) end |