apiotics 0.1.128 → 0.1.129
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/apiotics/insert.rb +7 -1
- data/lib/apiotics/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: 1c378c288cbf257e1d42b6ef60317e5792a8d038
|
4
|
+
data.tar.gz: 87db512db1f61b939cbd5fd3c7d82a3a75a18afc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa8ee42109d3b57bffac13ec614c78910513b0a34b3b1390218a463054d99611b3f4b17e246eb5a3cf3517f3ad8c332fd69e51f7e0389484041dead776f0a5ee
|
7
|
+
data.tar.gz: e1aff58103d1e9439cc27e27d10fb90dc953b0abe4d645e86ec43086e315a324e999dbd4f09e5b134df3bd94d4dc2ad4c651aa8a0b4449166d78967c47c77274
|
data/lib/apiotics/insert.rb
CHANGED
@@ -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
|
-
|
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"]
|
data/lib/apiotics/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|