Sha256: 60d68eb1b451d63196a854f085346de6b22c42e603fc8918f862b5ea2d31582b

Contents?: true

Size: 542 Bytes

Versions: 6

Compression:

Stored size: 542 Bytes

Contents

require 'hamburglar/errors'
require 'faraday'
require 'faraday_middleware'

module Hamburglar
  autoload :Version,  'hamburglar/version'
  autoload :Config,   'hamburglar/config'
  autoload :Report,   'hamburglar/report'
  autoload :Gateways, 'hamburglar/gateways'

  class << self
    attr_accessor :config
  end

  # Set Hamburglar.config
  #
  # Example:
  #   Hamburglar.configure do |config|
  #     config.fraud_score = 10
  #   end
  def self.configure
    yield config if block_given?
    config
  end

  self.config = Config.new
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hamburglar-0.3.0 lib/hamburglar.rb
hamburglar-0.2.0 lib/hamburglar.rb
hamburglar-0.1.5 lib/hamburglar.rb
hamburglar-0.1.4 lib/hamburglar.rb
hamburglar-0.1.3 lib/hamburglar.rb
hamburglar-0.1.2 lib/hamburglar.rb