Class: DefraRuby::Storm::Configuration
- Inherits:
-
Object
- Object
- DefraRuby::Storm::Configuration
- Defined in:
- lib/defra_ruby/storm/configuration.rb
Instance Attribute Summary collapse
-
#env_namespace ⇒ Object
Returns the value of attribute env_namespace.
-
#log ⇒ Object
Returns the value of attribute log.
-
#namespace_identifier ⇒ Object
Returns the value of attribute namespace_identifier.
-
#namespaces ⇒ Object
Returns the value of attribute namespaces.
-
#pretty_print_xml ⇒ Object
Returns the value of attribute pretty_print_xml.
-
#soap_version ⇒ Object
Returns the value of attribute soap_version.
-
#storm_api_password ⇒ Object
Returns the value of attribute storm_api_password.
-
#storm_api_username ⇒ Object
Returns the value of attribute storm_api_username.
-
#use_wsa_headers ⇒ Object
Returns the value of attribute use_wsa_headers.
-
#wsdl ⇒ Object
Returns the value of attribute wsdl.
-
#wsse_auth ⇒ Object
Returns the value of attribute wsse_auth.
Class Method Summary collapse
Instance Attribute Details
#env_namespace ⇒ Object
Returns the value of attribute env_namespace.
6 7 8 |
# File 'lib/defra_ruby/storm/configuration.rb', line 6 def env_namespace @env_namespace end |
#log ⇒ Object
Returns the value of attribute log.
6 7 8 |
# File 'lib/defra_ruby/storm/configuration.rb', line 6 def log @log end |
#namespace_identifier ⇒ Object
Returns the value of attribute namespace_identifier.
6 7 8 |
# File 'lib/defra_ruby/storm/configuration.rb', line 6 def namespace_identifier @namespace_identifier end |
#namespaces ⇒ Object
Returns the value of attribute namespaces.
6 7 8 |
# File 'lib/defra_ruby/storm/configuration.rb', line 6 def namespaces @namespaces end |
#pretty_print_xml ⇒ Object
Returns the value of attribute pretty_print_xml.
6 7 8 |
# File 'lib/defra_ruby/storm/configuration.rb', line 6 def pretty_print_xml @pretty_print_xml end |
#soap_version ⇒ Object
Returns the value of attribute soap_version.
6 7 8 |
# File 'lib/defra_ruby/storm/configuration.rb', line 6 def soap_version @soap_version end |
#storm_api_password ⇒ Object
Returns the value of attribute storm_api_password.
6 7 8 |
# File 'lib/defra_ruby/storm/configuration.rb', line 6 def storm_api_password @storm_api_password end |
#storm_api_username ⇒ Object
Returns the value of attribute storm_api_username.
6 7 8 |
# File 'lib/defra_ruby/storm/configuration.rb', line 6 def storm_api_username @storm_api_username end |
#use_wsa_headers ⇒ Object
Returns the value of attribute use_wsa_headers.
6 7 8 |
# File 'lib/defra_ruby/storm/configuration.rb', line 6 def use_wsa_headers @use_wsa_headers end |
#wsdl ⇒ Object
Returns the value of attribute wsdl.
6 7 8 |
# File 'lib/defra_ruby/storm/configuration.rb', line 6 def wsdl @wsdl end |
#wsse_auth ⇒ Object
Returns the value of attribute wsse_auth.
6 7 8 |
# File 'lib/defra_ruby/storm/configuration.rb', line 6 def wsse_auth @wsse_auth end |
Class Method Details
.call_recording_service_configuration ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/defra_ruby/storm/configuration.rb', line 28 def self.call_recording_service_configuration { endpoint: "https://www.timeforstorm.com/RedCentrexWebservices/Service.svc", namespace: "http://redcentrex.redwoodtech.com/calls", wsse_auth: [DefraRuby::Storm.configuration.storm_api_username, DefraRuby::Storm.configuration.storm_api_password], soap_version: 2, pretty_print_xml: true, use_wsa_headers: true, env_namespace: :soap, namespace_identifier: :cal, namespaces: { "xmlns:soap" => "http://www.w3.org/2003/05/soap-envelope", "xmlns:cal" => "http://redcentrex.redwoodtech.com/calls" }, log: false } end |
.user_details_service_configuration ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/defra_ruby/storm/configuration.rb', line 10 def self.user_details_service_configuration { wsdl: "https://www.timeforstorm.com/serviceportalapi/service.svc?singleWsdl", wsse_auth: [DefraRuby::Storm.configuration.storm_api_username, DefraRuby::Storm.configuration.storm_api_password], soap_version: 2, pretty_print_xml: true, use_wsa_headers: true, env_namespace: :soap, namespace_identifier: :ngw, namespaces: { "xmlns:soap" => "http://www.w3.org/2003/05/soap-envelope", "xmlns:ngw" => "http://redwoodtech.com/ws/NGware/NGwareTypes" }, log: false } end |