resinio 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/resinio.rb +1 -0
- data/lib/resinio/device.rb +4 -1
- data/lib/resinio/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbcadf16c51913521f06ad168756c50f7abff92f75b1207540daa7cdf7ff31c3
|
4
|
+
data.tar.gz: 9d533143ea0f4a9464317082498ebd12c792e2ed371dadef994327754b57a18c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0114c3acb62f03c837b82b38f20f32c79b4b72c30b8510151c0b7e8402e94f0310f7fd15498fbaeb679fc11ac18948a13ef537c666a76b97d6e9e430c8f1646e
|
7
|
+
data.tar.gz: 4c1f209542ffdb714a08cab6d183712036335a34260e816ff6525d4300ea8476d3ae430ea4473c5e0439af7e1ba304cfb115d24d3f2df50248ec0c320a8cf4c2
|
data/lib/resinio.rb
CHANGED
data/lib/resinio/device.rb
CHANGED
@@ -6,7 +6,8 @@ module ResinIO
|
|
6
6
|
class Device
|
7
7
|
attr_reader :id, :uuid, :device_name, :device_type,
|
8
8
|
:is_online, :status, :os_variant, :location,
|
9
|
-
:commit, :os_version, :supervisor_version, :longitude, :latitude, :app_id
|
9
|
+
:commit, :os_version, :supervisor_version, :longitude, :latitude, :app_id,
|
10
|
+
:last_connectivity_event, :ip_address
|
10
11
|
def initialize(attributes)
|
11
12
|
@id = attributes['id']
|
12
13
|
@uuid = attributes['uuid']
|
@@ -22,6 +23,8 @@ module ResinIO
|
|
22
23
|
@longitude = attributes['longitude']
|
23
24
|
@latitude = attributes['latitude']
|
24
25
|
@app_id = attributes['belongs_to__application']['__id']
|
26
|
+
@last_connectivity_event = Time.parse(attributes['last_connectivity_event'])
|
27
|
+
@ip_address = attributes['ip_address'].split(" ")
|
25
28
|
end
|
26
29
|
|
27
30
|
def self.find(id)
|
data/lib/resinio/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resinio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodney Cullen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|