Class: Transbank::Oneclick::Configuration
- Inherits:
-
Object
- Object
- Transbank::Oneclick::Configuration
- Defined in:
- lib/transbank/oneclick/configuration.rb
Instance Attribute Summary collapse
-
#cert_path ⇒ Object
Returns the value of attribute cert_path.
-
#http_options ⇒ Object
Returns the value of attribute http_options.
-
#key_path ⇒ Object
Returns the value of attribute key_path.
-
#rescue_exceptions ⇒ Object
Returns the value of attribute rescue_exceptions.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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. = {} end |
Instance Attribute Details
#cert_path ⇒ Object
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_options ⇒ Object
Returns the value of attribute http_options.
8 9 10 |
# File 'lib/transbank/oneclick/configuration.rb', line 8 def end |
#key_path ⇒ Object
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_exceptions ⇒ Object
Returns the value of attribute rescue_exceptions.
7 8 9 |
# File 'lib/transbank/oneclick/configuration.rb', line 7 def rescue_exceptions @rescue_exceptions end |
#url ⇒ Object
Returns the value of attribute url.
4 5 6 |
# File 'lib/transbank/oneclick/configuration.rb', line 4 def url @url end |