Class: Transbank::Webpay::Options

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_keyObject

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_codeObject

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

#environmentObject

Returns the value of attribute environment.



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

def environment
  @environment
end

#timeoutObject

Returns the value of attribute timeout.



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

def timeout
  @timeout
end