class TACore::Device

> Device class methods

Public Class Methods

cirrus(token) click to toggle source

Display all cirrus devices that belong to this application @param token [String] Client Token after Authentication @return [Array<Object, Object>] in JSON format

# File lib/tacore/device.rb, line 34
def self.cirrus(token)
  request(:get, '/application/cirrus', {}, {"token": token})
end
find(token, client_id, device_id) click to toggle source

Find device by device_id @param token [String] Client Token after Authentication @param client_id [String] used from {Client.create} @param device_id [Integer] Device ID @return [Object] in JSON format

# 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) click to toggle source

Display all iris devices that belong to this application @param token [String] Client Token after Authentication @return [Array<Object, Object>] in JSON format

# 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 = {}) click to toggle source

Update a device's venue_id @param token [String] Client Token after Authentication @param client_id [String] used from {Client.create} @param id [Integer] Device ID @param device [Object] Venue ID as a value @return [Object] in JSON format

# 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