Sha256: 15200d77bac4a0e4245b13ba2d7e1e2bc5c14319a0a92568ab24fe48f98d8057
Contents?: true
Size: 619 Bytes
Versions: 2
Compression:
Stored size: 619 Bytes
Contents
require File.expand_path('../connection', __FILE__) require File.expand_path('../request', __FILE__) module EPayCo # @private class API # @private attr_accessor *Configuration::VALID_OPTIONS_KEYS # Creates a new API def initialize(options={}) options = EPayCo.options.merge(options) Configuration::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", options[key]) end end def config conf = {} Configuration::VALID_OPTIONS_KEYS.each do |key| conf[key] = send key end conf end include Connection include Request end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
epayco-0.0.3 | lib/epayco/api.rb |
epayco-0.0.2 | lib/epayco/api.rb |