Module: PricePulse::Configuration

Defined in:
lib/price_pulse/configuration.rb

Constant Summary collapse

VERSION =

— STATIC (Read-Only) Settings —

"0.1.6"
BASE_VALIDATION_URL =
"https://en.wikipedia.org/wiki/"
PARSERS =

List of all available parser classes

[
  :AmazonParser, 
  :BestBuyParser,
  :WalmartParser
].freeze

Class Method Summary collapse

Class Method Details

.configObject

Reader method for accessing the configuration hash



24
25
26
# File 'lib/price_pulse/configuration.rb', line 24

def self.config
  @config
end

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

Method to allow users to set configuration variables after the Gem loads Example usage: PricePulse::Configuration.configure { |c| c = ‘new-tag’ }

Yields:



30
31
32
# File 'lib/price_pulse/configuration.rb', line 30

def self.configure
  yield @config if block_given?
end