Module: Punchr::Configuration

Included in:
Punchr
Defined in:
lib/punchr/configuration.rb

Overview

Configuration settings for Punchr.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#api_keyObject

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

Yields:

  • (_self)

Yield Parameters:



14
15
16
# File 'lib/punchr/configuration.rb', line 14

def configure
  yield self
end