Class: DefraRuby::Storm::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/defra_ruby/storm/configuration.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#env_namespaceObject

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

#logObject

Returns the value of attribute log.



6
7
8
# File 'lib/defra_ruby/storm/configuration.rb', line 6

def log
  @log
end

#namespace_identifierObject

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

#namespacesObject

Returns the value of attribute namespaces.



6
7
8
# File 'lib/defra_ruby/storm/configuration.rb', line 6

def namespaces
  @namespaces
end

#pretty_print_xmlObject

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_versionObject

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_passwordObject

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_usernameObject

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_headersObject

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

#wsdlObject

Returns the value of attribute wsdl.



6
7
8
# File 'lib/defra_ruby/storm/configuration.rb', line 6

def wsdl
  @wsdl
end

#wsse_authObject

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_configurationObject



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_configurationObject



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