Module: Infusionsoft::Configuration
- Included in:
- Infusionsoft
- Defined in:
- lib/infusion-api/configuration.rb
Constant Summary collapse
- VALID_OPTION_KEYS =
[ :api_url, :api_key ].freeze
Instance Method Summary collapse
-
#configure {|_self| ... } ⇒ Object
Convenience method to allow configuration options to be set in a block.
-
#options ⇒ Object
Create a hash of options and their values.
Instance Method Details
#configure {|_self| ... } ⇒ Object
Convenience method to allow configuration options to be set in a block
18 19 20 |
# File 'lib/infusion-api/configuration.rb', line 18 def configure yield self end |
#options ⇒ Object
Create a hash of options and their values
23 24 25 26 27 |
# File 'lib/infusion-api/configuration.rb', line 23 def = {} VALID_OPTION_KEYS.each{|k| [k] = send(k)} end |