projector_pws 0.1.1 → 0.1.2
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 +4 -4
- data/lib/projector_pws/version.rb +1 -1
- data/lib/projector_pws.rb +13 -0
- 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: 2632e75a759ad4e26cac1f32e66094baf73dc7d0
|
|
4
|
+
data.tar.gz: d5136eaf4cc49b494e74c98f949732b0913b8383
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 91366914dd3bf0ec7e27ada07a00756b7ac3d165babb604296c5dbe29909ca10540fb02fbd4485bbf73dc070844d72d6abd249d068a58d666ef6277572bb5e2a
|
|
7
|
+
data.tar.gz: e023b8f6ee96ce53c49b704d517e0f95d2e751300dbf74011840e3492aeb160c812ff388e458a1ce28173c5de4a7466c10d00f3878738fc9032c133dc4d0a4e9
|
data/lib/projector_pws.rb
CHANGED
|
@@ -26,6 +26,7 @@ module ProjectorPWS
|
|
|
26
26
|
EXTRA_NAMESPACES = {
|
|
27
27
|
'xmlns:req' => 'http://projectorpsa.com/DataContracts/Requests/',
|
|
28
28
|
'xmlns:tim' => 'http://projectorpsa.com/DataContracts/Shared/TimeAndCost/',
|
|
29
|
+
'xmlns:rep' => 'http://projectorpsa.com/DataContracts/Shared/Report/',
|
|
29
30
|
'xmlns:com' => 'http://projectorpsa.com/DataContracts/Shared/Common/'
|
|
30
31
|
}
|
|
31
32
|
|
|
@@ -107,6 +108,18 @@ module ProjectorPWS
|
|
|
107
108
|
c.call(:pws_unauthenticate, message: { 'pws:serviceRequest' => { 'req:SessionTicket' => ticket } }).body
|
|
108
109
|
end
|
|
109
110
|
|
|
111
|
+
# Get Report Output
|
|
112
|
+
def self.get_report c, ticket, report_uid, format = nil
|
|
113
|
+
|
|
114
|
+
# Prepare Params
|
|
115
|
+
params = { 'req:SessionTicket' => ticket }
|
|
116
|
+
params['rep:ReportIdentity'] = { 'com:ReportUid' => report_uid }
|
|
117
|
+
params['rep:Format'] = format if format
|
|
118
|
+
|
|
119
|
+
# Fetch Report
|
|
120
|
+
c.call(:pws_get_report_output, message: { 'pws:serviceRequest' => params }).body
|
|
121
|
+
end
|
|
122
|
+
|
|
110
123
|
# Get Resources
|
|
111
124
|
def self.get_resources c, ticket
|
|
112
125
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: projector_pws
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eresse
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-11-
|
|
11
|
+
date: 2017-11-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|