innologix 0.0.24 → 0.0.25

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: fc721c1f38ccbd780e1930247e2f8e00fd4f7a0f
4
- data.tar.gz: 4b19f422e2d4246f613ce84f9bec9ef6289d166e
3
+ metadata.gz: 40faffe9e6f79656d9a6bb10d5b41e07763a2c1f
4
+ data.tar.gz: e3358cdedd06f52bacd1f928f66a31ab60d14506
5
5
  SHA512:
6
- metadata.gz: adcebf462fe4e59f181969359c1a2a68d0591cdcaa7ae26beaaf82cc6cc670c9805ed29f428a9374ef8e9a9ce51e651b798f1ecbd0efcd123aed2ffbe659cf1d
7
- data.tar.gz: 08b255c58afcd2a2b806caada6dab82232415ab9522ce5b2959b4ef6eebf9ab1e3d5a05faab403002cfce2b8ac5645ec7ead256fe3bbc8e1ab841c2e2b6e4331
6
+ metadata.gz: 9681b18aa04595443ef0edab7c55004b7dbda5102c7cf6551211c8594dfb3913f24c697f9b74fd2742b04c9a30aebb6558228bc53f36659c62205ce0dfeb58a6
7
+ data.tar.gz: 07e80fcd597b5037aa9b8761decf72e3cf57950096d6366b3b0a0c39f488c7368a31ee4a71d386b9a33511a421b7955df63ab040d94f3f18393519c9ffb58459
@@ -25,10 +25,10 @@ module Innologix
25
25
  @client = Client.default
26
26
  end
27
27
 
28
- def list(offset = 0, limit = 10)
28
+ def list(offset = 0, limit = 10, params = {})
29
29
  path = '/devices'
30
30
  method = 'get'
31
- options = {query_params: {offset: offset, limit: limit}}
31
+ options = {query_params: {offset: offset, limit: limit}.merge(params)}
32
32
  result = client.call_api(path, method, options)
33
33
  if result[:error].nil?
34
34
  list =[]
data/lib/innologix/m2m.rb CHANGED
@@ -18,10 +18,10 @@ module Innologix
18
18
  @client = Client.default
19
19
  end
20
20
 
21
- def list(offset = 0, limit = 10)
21
+ def list(offset = 0, limit = 10, params = {})
22
22
  path = '/m2ms'
23
23
  method = 'get'
24
- options = {query_params: {offset: offset, limit: limit}}
24
+ options = {query_params: {offset: offset, limit: limit}.merge(params)}
25
25
  result = client.call_api(path, method, options)
26
26
  if result[:error].nil?
27
27
  list =[]
@@ -157,10 +157,10 @@ module Innologix
157
157
  m2m
158
158
  end
159
159
 
160
- def devices(offset = 0, limit = 10)
160
+ def devices(offset = 0, limit = 10, params = {})
161
161
  path = '/devices'
162
162
  method = 'get'
163
- options = {query_params: {m2m_id: self.id, offset: offset, limit: limit}}
163
+ options = {query_params: {m2m_id: self.id, offset: offset, limit: limit}.merge(params)}
164
164
  result = client.call_api(path, method, options)
165
165
  if result[:error].nil?
166
166
  list =[]
@@ -1,3 +1,3 @@
1
1
  module Innologix
2
- VERSION = "0.0.24"
2
+ VERSION = "0.0.25"
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.24
4
+ version: 0.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - SkyLab Innogram