Module: TrackerHub::Request::Setup
- Included in:
- TrackerHub::Request
- Defined in:
- lib/tracker_hub/request/setup.rb
Overview
Configure the request tracker
Instance Attribute Summary collapse
-
#config ⇒ TrackerHub::Request::Config
readonly
Get the current configuration, instantiate a new object if nil Note: each attribute can also be written through the config object.
Instance Method Summary collapse
-
#setup {|config| ... } ⇒ TrackerHub::Request::Config
Setup configuration in block.
Instance Attribute Details
#config ⇒ TrackerHub::Request::Config
Get the current configuration, instantiate a new object if nil
Note: each attribute can also be written through the config object
21 22 23 |
# File 'lib/tracker_hub/request/setup.rb', line 21 def config @config ||= self::Config.new end |
Instance Method Details
#setup {|config| ... } ⇒ TrackerHub::Request::Config
Setup configuration in block
36 37 38 |
# File 'lib/tracker_hub/request/setup.rb', line 36 def setup yield(config) end |