Class: Transbank::Webpay::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/transbank/webpay/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



17
18
19
20
21
22
23
24
25
# File 'lib/transbank/webpay/configuration.rb', line 17

def initialize
  @rescue_exceptions = [
    Net::ReadTimeout, Timeout::Error, Errno::EINVAL, Errno::ECONNRESET,
    EOFError, Net::HTTPBadGateway, Net::HTTPBadResponse,
    Net::HTTPHeaderSyntaxError, Net::ProtocolError
  ]

  @http_options = {}
end

Instance Attribute Details

#cert_pathObject

Returns the value of attribute cert_path.



9
10
11
# File 'lib/transbank/webpay/configuration.rb', line 9

def cert_path
  @cert_path
end

#commerce_codeObject

Returns the value of attribute commerce_code.



7
8
9
# File 'lib/transbank/webpay/configuration.rb', line 7

def commerce_code
  @commerce_code
end

#http_optionsObject

Returns the value of attribute http_options.



15
16
17
# File 'lib/transbank/webpay/configuration.rb', line 15

def http_options
  @http_options
end

#key_pathObject

Returns the value of attribute key_path.



10
11
12
# File 'lib/transbank/webpay/configuration.rb', line 10

def key_path
  @key_path
end

#rescue_exceptionsObject

Returns the value of attribute rescue_exceptions.



13
14
15
# File 'lib/transbank/webpay/configuration.rb', line 13

def rescue_exceptions
  @rescue_exceptions
end

#server_cert_pathObject

Returns the value of attribute server_cert_path.



11
12
13
# File 'lib/transbank/webpay/configuration.rb', line 11

def server_cert_path
  @server_cert_path
end

#wsdl_nullify_urlObject

Returns the value of attribute wsdl_nullify_url.



5
6
7
# File 'lib/transbank/webpay/configuration.rb', line 5

def wsdl_nullify_url
  @wsdl_nullify_url
end

#wsdl_transaction_urlObject

Returns the value of attribute wsdl_transaction_url.



4
5
6
# File 'lib/transbank/webpay/configuration.rb', line 4

def wsdl_transaction_url
  @wsdl_transaction_url
end