Class: RfidApi::Device

Inherits:
Client
  • Object
show all
Defined in:
lib/rfid_api/device.rb

Instance Attribute Summary

Attributes inherited from Client

#destroyed

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(options = {})
  resources get("/#{plural_name}/#{_id}/actions.#{format}", :query => options)
end

#events(options = {}) ⇒ Object



5
6
7
# File 'lib/rfid_api/device.rb', line 5

def events(options = {})
  resources get("/#{plural_name}/#{_id}/events.#{format}", :query => options)
end