Class: DeltavistaCrifDvaInterface::SoapConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/deltavista_crif_dva_interface/soap_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ SoapConfig

Returns a new instance of SoapConfig.



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/deltavista_crif_dva_interface/soap_config.rb', line 5

def initialize(options)
  default_endpoint = 'https://preprodservices.crif-online.ch/CrifSS/CrifSoapServiceV1'
  default_wsdl = File.expand_path('../../wsdl/crif-soap-service_v1.0.wsdl', File.dirname(__FILE__))

  @endpoint = options[:endpoint] ? options[:endpoint] : default_endpoint
  @wsdl = options[:wsdl] ? options[:wsdl] : default_wsdl
  @user_name = options[:user_name]
  @password = options[:password]
  @action = options[:action] ? options[:action] : nil
  @response = options[:response] ? options[:response] : nil
  @logger = options[:logger] ? options[:logger] : Logger.new(STDOUT)
end

Instance Attribute Details

#actionObject

Returns the value of attribute action.



3
4
5
# File 'lib/deltavista_crif_dva_interface/soap_config.rb', line 3

def action
  @action
end

#endpointObject

Returns the value of attribute endpoint.



3
4
5
# File 'lib/deltavista_crif_dva_interface/soap_config.rb', line 3

def endpoint
  @endpoint
end

#loggerObject

Returns the value of attribute logger.



3
4
5
# File 'lib/deltavista_crif_dva_interface/soap_config.rb', line 3

def logger
  @logger
end

#passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/deltavista_crif_dva_interface/soap_config.rb', line 3

def password
  @password
end

#responseObject

Returns the value of attribute response.



3
4
5
# File 'lib/deltavista_crif_dva_interface/soap_config.rb', line 3

def response
  @response
end

#user_nameObject

Returns the value of attribute user_name.



3
4
5
# File 'lib/deltavista_crif_dva_interface/soap_config.rb', line 3

def user_name
  @user_name
end

#wsdlObject

Returns the value of attribute wsdl.



3
4
5
# File 'lib/deltavista_crif_dva_interface/soap_config.rb', line 3

def wsdl
  @wsdl
end