Class: Transbank::Webpay::Options
- Inherits:
-
Object
- Object
- Transbank::Webpay::Options
- Defined in:
- lib/transbank/sdk/webpay/options.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#commerce_code ⇒ Object
Returns the value of attribute commerce_code.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(commerce_code, api_key, environment, timeout = ::Transbank::Common::ApiConstants::REQUEST_TIMEOUT) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(commerce_code, api_key, environment, timeout = ::Transbank::Common::ApiConstants::REQUEST_TIMEOUT) ⇒ Options
Returns a new instance of Options.
6 7 8 9 10 11 |
# File 'lib/transbank/sdk/webpay/options.rb', line 6 def initialize(commerce_code, api_key, environment, timeout = ::Transbank::Common::ApiConstants::REQUEST_TIMEOUT) @commerce_code = commerce_code @api_key = api_key @environment = environment @timeout = timeout end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
4 5 6 |
# File 'lib/transbank/sdk/webpay/options.rb', line 4 def api_key @api_key end |
#commerce_code ⇒ Object
Returns the value of attribute commerce_code.
4 5 6 |
# File 'lib/transbank/sdk/webpay/options.rb', line 4 def commerce_code @commerce_code end |
#environment ⇒ Object
Returns the value of attribute environment.
4 5 6 |
# File 'lib/transbank/sdk/webpay/options.rb', line 4 def environment @environment end |
#timeout ⇒ Object
Returns the value of attribute timeout.
4 5 6 |
# File 'lib/transbank/sdk/webpay/options.rb', line 4 def timeout @timeout end |