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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3a24194fba2e7a161d78b40a61d197ab9051e34
4
- data.tar.gz: f8695f7853e46a4197bf478d24a58c1ae764ceb3
3
+ metadata.gz: 2632e75a759ad4e26cac1f32e66094baf73dc7d0
4
+ data.tar.gz: d5136eaf4cc49b494e74c98f949732b0913b8383
5
5
  SHA512:
6
- metadata.gz: feea5aed83b2037da9a117f530979c201178ac78a9b3d7145ebb8cdbbf321458bb7faa352b2725ae2d8531856b02281f5e5052d0b893c1c52153a4bc5e55f3be
7
- data.tar.gz: 8e8fbdd33e55ee705cf707617159a5d1d469d53d601bf8a3f4dfaa08dc1985368bd6d17b972660012b099a7e43de54c566269e0b75415a077d806919a0af9905
6
+ metadata.gz: 91366914dd3bf0ec7e27ada07a00756b7ac3d165babb604296c5dbe29909ca10540fb02fbd4485bbf73dc070844d72d6abd249d068a58d666ef6277572bb5e2a
7
+ data.tar.gz: e023b8f6ee96ce53c49b704d517e0f95d2e751300dbf74011840e3492aeb160c812ff388e458a1ce28173c5de4a7466c10d00f3878738fc9032c133dc4d0a4e9
@@ -5,5 +5,5 @@
5
5
  module ProjectorPWS
6
6
 
7
7
  # Version
8
- VERSION = '0.1.1'
8
+ VERSION = '0.1.2'
9
9
  end
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.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-16 00:00:00.000000000 Z
11
+ date: 2017-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler