Class: Transbank::Oneclick::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



10
11
12
13
14
# File 'lib/transbank/oneclick/configuration.rb', line 10

def initialize
  self.rescue_exceptions = [Net::ReadTimeout, Timeout::Error, Errno::EINVAL, Errno::ECONNRESET, EOFError,
                            Net::HTTPBadResponse, Net::HTTPHeaderSyntaxError, Net::ProtocolError]
  self.http_options = {}
end

Instance Attribute Details

#cert_pathObject

Returns the value of attribute cert_path.



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

def cert_path
  @cert_path
end

#http_optionsObject

Returns the value of attribute http_options.



8
9
10
# File 'lib/transbank/oneclick/configuration.rb', line 8

def http_options
  @http_options
end

#key_pathObject

Returns the value of attribute key_path.



6
7
8
# File 'lib/transbank/oneclick/configuration.rb', line 6

def key_path
  @key_path
end

#rescue_exceptionsObject

Returns the value of attribute rescue_exceptions.



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

def rescue_exceptions
  @rescue_exceptions
end

#urlObject

Returns the value of attribute url.



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

def url
  @url
end