class EPayCo::API

@private

Public Class Methods

new(options={}) click to toggle source

Creates a new API

# File lib/epayco/api.rb, line 11
def initialize(options={})
  options = EPayCo.options.merge(options)
  Configuration::VALID_OPTIONS_KEYS.each do |key|
    send("#{key}=", options[key])
  end
end

Public Instance Methods

config() click to toggle source
# File lib/epayco/api.rb, line 18
def config
  conf = {}
  Configuration::VALID_OPTIONS_KEYS.each do |key|
    conf[key] = send key
  end
  conf
end