Module: ScoutMetrics::Configuration
- Included in:
- ScoutMetrics
- Defined in:
- lib/scoutmetrics/configuration.rb
Constant Summary collapse
- VALID_OPTIONS_KEYS =
[ :access_token, :environment ].freeze
Instance Method Summary collapse
- #configure {|_self| ... } ⇒ Object
-
#options ⇒ Object
Create a hash of options and their values.
Instance Method Details
#configure {|_self| ... } ⇒ Object
19 20 21 |
# File 'lib/scoutmetrics/configuration.rb', line 19 def configure yield self end |
#options ⇒ Object
Create a hash of options and their values
13 14 15 16 17 |
# File 'lib/scoutmetrics/configuration.rb', line 13 def VALID_OPTIONS_KEYS.inject({}) do |option, key| option.merge!(key => send(key)) end end |