ruby-miradore 4.0.2 → 4.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ruby/miradore/version.rb +1 -1
- data/lib/ruby/miradore.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e2ddc5b671777f92cf2dae606c3788cc82cd8c59bcb2d9aa266ef911998cc73
|
4
|
+
data.tar.gz: 743d7cf0f220861b171b509799ae4f3a527270ebd2e407fe645d0848d3da787d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f965ae1fdcbb916aa3a15ff8972861465a9a21955c5197ae9ddb436486086137fad7e6b88df4ca64dcf87bf9ae46f6ab5fac6155536c60dbeeb41f89cbe6130
|
7
|
+
data.tar.gz: 5857a443b1466e8ab8326f6081ca1de388458c54bec1834e9a8489aab79513a3c7cf2cf443714e8c498567d4dada10f8d2da6d61a7b071756f116ebd6eb0897f
|
data/Gemfile.lock
CHANGED
data/lib/ruby/miradore.rb
CHANGED
@@ -13,7 +13,7 @@ module Ruby
|
|
13
13
|
|
14
14
|
def self.url
|
15
15
|
{
|
16
|
-
item_v1: 'https://%<subdomain>s.online.miradore.com/API/%<item>s/%<id>s?auth=%<auth>s&select=*,%<attribute>s&filters=%<filter>s
|
16
|
+
item_v1: 'https://%<subdomain>s.online.miradore.com/API/%<item>s/%<id>s?auth=%<auth>s&select=*,%<attribute>s&filters=%<filter>s',
|
17
17
|
request_v1: 'https://%<subdomain>s.online.miradore.com/API/Device?auth=%<auth>s&select=*,Category.*,InvDevice.*,InvStorage.*,InvOS.*,Enrollment.*,Client.*,User.*,Location.*,Security.*,ReportedLocation.*&filters=%<filter>s&options=%<options>s',
|
18
18
|
v2: 'https://%<subdomain>s.online.miradore.com/API/v2/Device/%<id>s/%<method>s'
|
19
19
|
}
|
@@ -73,7 +73,7 @@ module Ruby
|
|
73
73
|
item: self.class.to_s.split('::').last,
|
74
74
|
attribute: args.fetch(:attribute, '*'),
|
75
75
|
filter: args.fetch(:filter, nil),
|
76
|
-
options: args.fetch(:options,
|
76
|
+
options: args.fetch(:options, nil)
|
77
77
|
)
|
78
78
|
self.class.method(args.fetch(:method, :get)).call(url, body: args.fetch(:body, nil)&.to_xml(root: 'Content', skip_types: true))
|
79
79
|
end
|