TACore 4.1.3 → 4.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tacore/gateway.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 175312aed5903023298729f3454b502f2018cbf4
|
|
4
|
+
data.tar.gz: 6d8bcc005247cfc5714566c52cbdddbc34bec166
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f29195f6c624ae0b57f6419cdc82f0a6a8c3bd5cfd5cda8d31579a935f52414cdaff6cb7ee62954ccd6c7c1d57bfae207eff4ba2459ce9a2c8d6f46ae50baf89
|
|
7
|
+
data.tar.gz: 1c0fc925a0940ffc38f3d07821e4fc7f27f111124e7d51ddb58e11f63a57930b3cf9c1d7d3896ba9bbed910e6b3807e3f60a916dd9b11a9af000fe75e4cb9899
|
data/lib/tacore/gateway.rb
CHANGED
|
@@ -10,6 +10,16 @@ module TACore
|
|
|
10
10
|
request(:get, '/gateway/' + gateway_id.to_s + '/sees', {}, {token: token, "client-id" => client_id})
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
# Shows the devices that are seen by the gateway id with options to query with
|
|
14
|
+
# @param token [String] Client Token after Authentication
|
|
15
|
+
# @param client_id [String] used from {Client.create}
|
|
16
|
+
# @param gateway_id [String] Gateway ID
|
|
17
|
+
# @param options [String] Options
|
|
18
|
+
# @return [Array<Object, Object>] in JSON format
|
|
19
|
+
def self.sees_with_options(token, client_id, gateway_id, options)
|
|
20
|
+
request(:get, '/gateway/' + gateway_id.to_s + '/sees' + '?' + options, {}, {token: token, "client-id" => client_id})
|
|
21
|
+
end
|
|
22
|
+
|
|
13
23
|
# Gets the Gateway by ID
|
|
14
24
|
# @param token [String] Client Token after Authentication
|
|
15
25
|
# @param client_id [String] used from {Client.create}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: TACore
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.1.
|
|
4
|
+
version: 4.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Greg Winn
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2017-
|
|
13
|
+
date: 2017-02-16 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rest-client
|