resinio 0.2.2 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/resinio/device.rb +6 -1
- data/lib/resinio/version.rb +1 -1
- metadata +1 -2
- data/resinio-0.2.1.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abdb4aa44935135a4d39b17beddd6eae02f34aed4358e90f5381e7027c619a0c
|
4
|
+
data.tar.gz: c587b83881ac2aa06143cb11dbf414ea106a0cfc251adf4c367d098af972df2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40252ae8d283c54215df44bb36a68866703bdfa13cfb62d094e0f295f7de63df6e17acb4142e58ea56222d98ff41a606fb1c42ac269463ee59938d2c74bdb1b6
|
7
|
+
data.tar.gz: 3cbc1144c8bdb06689a49220da904f13206745dd61f30b4756a27cb7d17b92f982a4b8ed87272530e611593c83044eadc9c0e5fb29ddb679ae048aac4216abb8
|
data/.gitignore
CHANGED
data/lib/resinio/device.rb
CHANGED
@@ -6,7 +6,7 @@ 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
|
9
|
+
:commit, :os_version, :supervisor_version, :longitude, :latitude, :app_id
|
10
10
|
def initialize(attributes)
|
11
11
|
@id = attributes['id']
|
12
12
|
@uuid = attributes['uuid']
|
@@ -21,6 +21,7 @@ module ResinIO
|
|
21
21
|
@supervisor_version = attributes['supervisor_version']
|
22
22
|
@longitude = attributes['longitude']
|
23
23
|
@latitude = attributes['latitude']
|
24
|
+
@app_id = attributes['belongs_to__application']['__id']
|
24
25
|
end
|
25
26
|
|
26
27
|
def self.find(id)
|
@@ -51,6 +52,10 @@ module ResinIO
|
|
51
52
|
# byebug
|
52
53
|
end
|
53
54
|
|
55
|
+
def app
|
56
|
+
ResinIO::Application.find(self.app_id)
|
57
|
+
end
|
58
|
+
|
54
59
|
# private
|
55
60
|
#
|
56
61
|
# def minion_method
|
data/lib/resinio/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodney Cullen
|
@@ -160,7 +160,6 @@ files:
|
|
160
160
|
- lib/resinio/application.rb
|
161
161
|
- lib/resinio/device.rb
|
162
162
|
- lib/resinio/version.rb
|
163
|
-
- resinio-0.2.1.gem
|
164
163
|
- resinio.gemspec
|
165
164
|
homepage: https://github.com/SecurEdge/resinio
|
166
165
|
licenses:
|
data/resinio-0.2.1.gem
DELETED
Binary file
|