module Transbank::Onepay::Request

Base module with methods & attributes common to Requests

Attributes

api_key[RW]
app_key[RW]

Public Instance Methods

set_keys_from_options(options) click to toggle source

Set the request's @api_key overriding the one in the [Base] class

# File lib/transbank/sdk/onepay/requests/request.rb, line 11
def set_keys_from_options(options)
  transform_hash_keys(options)
  new_api_key = options.fetch(:api_key, nil)
  self.api_key = new_api_key unless new_api_key.nil?
end