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
-
.config ⇒ Object
Reader method for accessing the configuration hash.
-
.configure {|@config| ... } ⇒ Object
Method to allow users to set configuration variables after the Gem loads Example usage: PricePulse::Configuration.configure { |c| c = ‘new-tag’ }.
Class Method Details
.config ⇒ Object
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’ }
30 31 32 |
# File 'lib/price_pulse/configuration.rb', line 30 def self.configure yield @config if block_given? end |