m2x 2.5.0 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/m2x/collection.rb +6 -0
- data/lib/m2x/version.rb +1 -1
- 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: 2df83391fd90e9c9f4f55d0a641e63defe16ba3c
|
4
|
+
data.tar.gz: 91c7801e47439fd6da3647c13c43bf1024c22335
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50a34788fec3c8616ef32c3d9dc9fbd04454d47c631e314d8490766818907744cebdab5e6d975345d35abca245250bd0c9edea9616b65a8011e45a62e60722fb
|
7
|
+
data.tar.gz: ee6d3ba03c5ea86a37234258ec7c8a3a58edc063caf511a03ca7e44d9f6000ad5d211e2c7ca09f3f6bd44ba40f82775e5a9615a271fb5574379d3db66800e724
|
data/lib/m2x/collection.rb
CHANGED
@@ -33,6 +33,12 @@ class M2X::Client::Collection < M2X::Client::Resource
|
|
33
33
|
@path ||= "#{ PATH }/#{ URI.encode(@attributes.fetch("id")) }"
|
34
34
|
end
|
35
35
|
|
36
|
+
def devices
|
37
|
+
res = @client.get("#{path}/devices")
|
38
|
+
|
39
|
+
res.json["devices"].map{ |atts| M2X::Client::Device.new(@client, atts) } if res.success?
|
40
|
+
end
|
41
|
+
|
36
42
|
# Add device to collection
|
37
43
|
#
|
38
44
|
# https://m2x.att.com/developer/documentation/v2/collections#Add-device-to-collection
|
data/lib/m2x/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: m2x
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leandro López
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-07-07 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
15
|
description: AT&T’s M2X is a cloud-based fully managed data storage service for network
|
16
16
|
connected machine-to-machine (M2M) devices. From trucks and turbines to vending
|