apiotics 0.1.128 → 0.1.129

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86db635680cb2b76116fb974d1d3923d0db781e7
4
- data.tar.gz: 3fe2373bdc714f8c73b5eda2ea9958daceb7252d
3
+ metadata.gz: 1c378c288cbf257e1d42b6ef60317e5792a8d038
4
+ data.tar.gz: 87db512db1f61b939cbd5fd3c7d82a3a75a18afc
5
5
  SHA512:
6
- metadata.gz: 6d3ff236c75497c769515d14a6e56c4606d50931bd704d2fedde0bd2f2463e463b88a9f1c2d0035a1e3790fd6737fa2e143792b7f4749bce293040f41e999ef5
7
- data.tar.gz: 9b924ea24b3d1d3a7b2f256cc2695a7d4d24858604bde0a839f82fae32851c67a8a6b1e9191097a84f54ea66b2699d233507a6190b9fca43fed8470a7a8a4792
6
+ metadata.gz: fa8ee42109d3b57bffac13ec614c78910513b0a34b3b1390218a463054d99611b3f4b17e246eb5a3cf3517f3ad8c332fd69e51f7e0389484041dead776f0a5ee
7
+ data.tar.gz: e1aff58103d1e9439cc27e27d10fb90dc953b0abe4d645e86ec43086e315a324e999dbd4f09e5b134df3bd94d4dc2ad4c651aa8a0b4449166d78967c47c77274
@@ -8,7 +8,13 @@ module Apiotics
8
8
  class Insert
9
9
  def initialize(hash = {"action" => "set-complete", "instance" => 1, "driver" => "test_driver", "interface" => "control", "value" => 72, "timestamp" => "1000000000000", "status" => "ok"})
10
10
  @action = hash["action"]
11
- @id = hash["instance"]
11
+ if hash["instance_id"] != nil
12
+ @id = hash["instance_id"]
13
+ elsif hash["instance"] != nil
14
+ @id = hash["instance"]
15
+ else
16
+ @id = nil
17
+ end
12
18
  @class = hash["driver"]
13
19
  @methods = hash["interface"]
14
20
  @value = hash["value"]
@@ -1,3 +1,3 @@
1
1
  module Apiotics
2
- VERSION = '0.1.128'
2
+ VERSION = '0.1.129'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apiotics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.128
4
+ version: 0.1.129
5
5
  platform: ruby
6
6
  authors:
7
7
  - MicroArx Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-20 00:00:00.000000000 Z
11
+ date: 2018-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails