Module: Hamburglar

Defined in:
lib/hamburglar.rb,
lib/hamburglar/errors.rb,
lib/hamburglar/config.rb,
lib/hamburglar/report.rb,
lib/hamburglar/version.rb,
lib/hamburglar/gateways.rb,
lib/hamburglar/gateways/base.rb,
lib/hamburglar/gateways/max_mind.rb

Defined Under Namespace

Modules: Gateways Classes: Config, InvalidGateway, InvalidRequest, InvalidURL, Report

Constant Summary

VERSION =
Version = '0.2.0'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject

Returns the value of attribute config



12
13
14
# File 'lib/hamburglar.rb', line 12

def config
  @config
end

Class Method Details

.configure {|config| ... } ⇒ Object

Set Hamburglar.config

Example:

Hamburglar.configure do |config|
  config.fraud_score = 10
end

Yields:



21
22
23
24
# File 'lib/hamburglar.rb', line 21

def self.configure
  yield config if block_given?
  config
end