Class: PagoPA::SOAP::WSDLLoader

Inherits:
Object
  • Object
show all
Defined in:
lib/pago_pa/soap/wsdl_loader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ WSDLLoader

Returns a new instance of WSDLLoader.



11
12
13
14
15
16
17
18
# File 'lib/pago_pa/soap/wsdl_loader.rb', line 11

def initialize(options = {})
  @wsdl_base = options[:wsdl_base] || PagoPA::SOAP.config.wsdl_base
  @wsdl_notify = options[:wsdl_notify] || PagoPA::SOAP.config.wsdl_notify
  @namespace = options[:namespace] || PagoPA::SOAP.config.namespace

  validate_wsdl_base!
  validate_wsdl_notify!
end

Instance Attribute Details

#namespaceObject (readonly)

Returns the value of attribute namespace.



9
10
11
# File 'lib/pago_pa/soap/wsdl_loader.rb', line 9

def namespace
  @namespace
end

#wsdl_baseObject (readonly)

Returns the value of attribute wsdl_base.



7
8
9
# File 'lib/pago_pa/soap/wsdl_loader.rb', line 7

def wsdl_base
  @wsdl_base
end

#wsdl_notifyObject (readonly)

Returns the value of attribute wsdl_notify.



8
9
10
# File 'lib/pago_pa/soap/wsdl_loader.rb', line 8

def wsdl_notify
  @wsdl_notify
end

Instance Method Details

#buildObject



20
21
22
23
# File 'lib/pago_pa/soap/wsdl_loader.rb', line 20

def build
  soap_base.build
  soap_notify.build
end

#clientsObject



29
30
31
# File 'lib/pago_pa/soap/wsdl_loader.rb', line 29

def clients
  soap_base.client + soap_notify.client
end

#requestsObject



25
26
27
# File 'lib/pago_pa/soap/wsdl_loader.rb', line 25

def requests
  soap_base.request + soap_notify.request
end

#responsesObject



33
34
35
# File 'lib/pago_pa/soap/wsdl_loader.rb', line 33

def responses
  soap_base.response + soap_notify.response
end