Class: TACore::Device
- Inherits:
-
Auth
- Object
- Configuration
- Auth
- TACore::Device
- Defined in:
- lib/tacore/device.rb
Overview
> Device class methods
Instance Attribute Summary
Attributes inherited from Auth
Attributes inherited from Configuration
#api_key, #api_url, #client_id, #client_secret
Class Method Summary collapse
-
.cirrus(token) ⇒ Array<Object, Object>
Display all cirrus devices that belong to this application.
-
.find(token, client_id, device_id) ⇒ Object
Find device by device_id.
-
.iris(token) ⇒ Array<Object, Object>
Display all iris devices that belong to this application.
-
.update(token, client_id, device_id, device = {}) ⇒ Object
Update a device’s venue_id.
Methods inherited from Auth
Methods inherited from Configuration
Constructor Details
This class inherits a constructor from TACore::Configuration
Class Method Details
.cirrus(token) ⇒ Array<Object, Object>
Display all cirrus devices that belong to this application
34 35 36 |
# File 'lib/tacore/device.rb', line 34 def self.cirrus(token) request(:get, '/application/cirrus', {}, {"token": token}) end |
.find(token, client_id, device_id) ⇒ Object
Find device by device_id
20 21 22 |
# File 'lib/tacore/device.rb', line 20 def self.find(token, client_id, device_id) request(:get, '/device/' + device_id.to_s,{}, {"token": token}) end |
.iris(token) ⇒ Array<Object, Object>
Display all iris devices that belong to this application
27 28 29 |
# File 'lib/tacore/device.rb', line 27 def self.iris(token) request(:get, '/application/iris', {}, {"token": token}) end |
.update(token, client_id, device_id, device = {}) ⇒ Object
Update a device’s venue_id
11 12 13 |
# File 'lib/tacore/device.rb', line 11 def self.update(token, client_id, device_id, device = {}) request(:put, '/device/' + device_id.to_s, device, {"token": token}) end |