Module: Punchr::Configuration
- Included in:
- Punchr
- Defined in:
- lib/punchr/configuration.rb
Overview
Configuration settings for Punchr.
Instance Attribute Summary collapse
-
#api_key ⇒ Object
API key.
Instance Method Summary collapse
-
#configure {|_self| ... } ⇒ Object
Yield self to be able to configure Punchr with block-style configuration.
Instance Attribute Details
#api_key ⇒ Object
API key.
5 6 7 |
# File 'lib/punchr/configuration.rb', line 5 def api_key @api_key end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
Yield self to be able to configure Punchr with block-style configuration.
Example:
Punchr.configure do |configuration|
configuration.api_key = 'your-punchr-api-key'
end
14 15 16 |
# File 'lib/punchr/configuration.rb', line 14 def configure yield self end |