class TACore::Gateway

> Gateway class methods

Public Class Methods

find(token, client_id, gateway_id) click to toggle source

Gets the Gateway by ID @param token [String] Client Token after Authentication @param client_id [String] used from {Client.create} @param gateway_id [String] Gateway ID @return [Array<Object, Object>] in JSON format

# File lib/tacore/gateway.rb, line 28
def self.find(token, client_id, gateway_id)
  request(:get, '/gateway/' + gateway_id.to_s, {}, {token: token, "client-id" => client_id})
end
sees(token, client_id, gateway_id) click to toggle source

Shows the devices that are seen by the gateway id @param token [String] Client Token after Authentication @param client_id [String] used from {Client.create} @param gateway_id [String] Gateway ID @return [Array<Object, Object>] in JSON format

# File lib/tacore/gateway.rb, line 9
def self.sees(token, client_id, gateway_id)
  request(:get, '/gateway/' + gateway_id.to_s + '/sees', {}, {token: token, "client-id" => client_id})
end
sees_with_options(token, client_id, gateway_id, options) click to toggle source

Shows the devices that are seen by the gateway id with options to query with @param token [String] Client Token after Authentication @param client_id [String] used from {Client.create} @param gateway_id [String] Gateway ID @param options [String] Options @return [Array<Object, Object>] in JSON format

# File lib/tacore/gateway.rb, line 19
def self.sees_with_options(token, client_id, gateway_id, options)
  request(:get, '/gateway/' + gateway_id.to_s + '/sees' + '?' + options, {}, {token: token, "client-id" => client_id})
end
update(token, client_id, gateway_id, gateway = {}) click to toggle source

Updates Gateway venue_id @param token [String] Client Token after Authentication @param client_id [String] used from {Client.create} @param gateway_id [String] Gateway ID @param gateway [Object] @return [Array<Object, Object>] in JSON format

# File lib/tacore/gateway.rb, line 38
def self.update(token, client_id, gateway_id, gateway = {})
  request(:put, '/gateway/' + gateway_id.to_s, gateway, {token: token, "client-id" => client_id})
end