nukturnal/bygpay_ruby

View on GitHub
lib/bygpay.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'bygpay/version'
require 'bygpay/configuration'
require 'bygpay/byg_response'
require 'bygpay/utils'
require 'bygpay/deposits'
require 'bygpay/deposit/mobile'
require 'bygpay/deposit/card'
require 'bygpay/deposit/rave'
require 'bygpay/deposit/express_pay'
require 'bygpay/deposit/paystack'
require 'bygpay/deposit/hubtel'
require 'bygpay/withdrawals'
require 'bygpay/withdraw/mobile'

module Bygpay

  class << self
    attr_accessor :configuration
  end

  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.reset
    @configuration = Configuration.new
  end

  def self.configure
    yield(configuration)
  end
end