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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f307888548e1c40bc4cedc0d2255fa75a69bfd4d8c326b8100efacac7794dd1
4
- data.tar.gz: 79f817498701bfeea235ff7f7b2f9d605f081f88a79994dbc8ee1b89585ba6a1
3
+ metadata.gz: abdb4aa44935135a4d39b17beddd6eae02f34aed4358e90f5381e7027c619a0c
4
+ data.tar.gz: c587b83881ac2aa06143cb11dbf414ea106a0cfc251adf4c367d098af972df2f
5
5
  SHA512:
6
- metadata.gz: dbd2d62c7a57c9ec53ff782ae2daa4ddb2734e8034230738581ba184ac43b6e5ffee773b113ab7329aa3f40b5c9e2b458d39b7277b36640e3521130d55e8e153
7
- data.tar.gz: 3a02edad95b52576966d6af13635f4c82a27585d771d920efb4c6e4c082d58dc834506503aad52eff0f838632ae17963a642343c4cc9add58a13002e3959a396
6
+ metadata.gz: 40252ae8d283c54215df44bb36a68866703bdfa13cfb62d094e0f295f7de63df6e17acb4142e58ea56222d98ff41a606fb1c42ac269463ee59938d2c74bdb1b6
7
+ data.tar.gz: 3cbc1144c8bdb06689a49220da904f13206745dd61f30b4756a27cb7d17b92f982a4b8ed87272530e611593c83044eadc9c0e5fb29ddb679ae048aac4216abb8
data/.gitignore CHANGED
@@ -8,3 +8,4 @@ Gemfile.lock
8
8
  /pkg/
9
9
  /spec/reports/
10
10
  /tmp/
11
+ *.gem
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ResinIO
2
- VERSION = '0.2.2'.freeze
2
+ VERSION = '0.2.4'.freeze
3
3
  end
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.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