innologix 0.0.28 → 0.0.29

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: 7edd09d511e580d0177d2f9750909b58c1d57ffb
4
- data.tar.gz: 859110e662c4b783c5d09d1ffaa38bf9cbd2ad48
3
+ metadata.gz: cba51b12fb8131c23528cb6b6dc70c3bfd1916e5
4
+ data.tar.gz: 2cfec66a62f576209e64cf0c2351636bde995fb8
5
5
  SHA512:
6
- metadata.gz: 739f28a37dda6a37f574a75dcdaaebf9ffbe99676cb401b35dd0e50ccb89ca06a1a17dc826b6f35850259110b5e6f3b6dee9129d17cbb1452248ead42df971bd
7
- data.tar.gz: 08ad304487f400cf9bd52571679d6f3bea72b44a86a1fcb0dc2a3d3afdb72cdb65b8c9e76e86ffc3b53dde636d1d2b10c85c94c1869cf89380fcdbb96114f48b
6
+ metadata.gz: 3c2c027d9947cd0d3380d06fdd63d0c91cd98089fe2de7b28f096f47c251c59232729fb2c4fc61db9bb05286ae37ce4531fd165752b4137e17a6a2922a77bb94
7
+ data.tar.gz: f40cd85a7d4c60dfc5c9336c8aacfface318a347cb6106d7455e4b0da1c3da3628b536499a573707f592cdc91bc557a09425736d1cdd1d60759ec0e4d95ca8fa
@@ -108,6 +108,32 @@ module Innologix
108
108
  end
109
109
  end
110
110
 
111
+ def enable
112
+ path = '/devices/' + id.to_s + '/enable'
113
+ method = 'patch'
114
+ form_params = {}
115
+ options = {form_params: {device: form_params}}
116
+ result = client.call_api(path, method, options)
117
+ if result[:error].nil?
118
+ from_hash(result)
119
+ else
120
+ RequestError.new(result)
121
+ end
122
+ end
123
+
124
+ def disable
125
+ path = '/devices/' + id.to_s + '/disable'
126
+ method = 'patch'
127
+ form_params = {}
128
+ options = {form_params: {device: form_params}}
129
+ result = client.call_api(path, method, options)
130
+ if result[:error].nil?
131
+ from_hash(result)
132
+ else
133
+ RequestError.new(result)
134
+ end
135
+ end
136
+
111
137
  def update
112
138
  path = '/devices/' + id.to_s
113
139
  method = 'put'
@@ -1,3 +1,3 @@
1
1
  module Innologix
2
- VERSION = "0.0.28"
2
+ VERSION = "0.0.29"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: innologix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.28
4
+ version: 0.0.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - SkyLab Innogram