Module: DispatchRider::Publisher::ConfigurationSupport
- Included in:
- DispatchRider::Publisher
- Defined in:
- lib/dispatch-rider/publisher/configuration_support.rb
Instance Method Summary collapse
- #configuration ⇒ Object (also: #config)
- #configure(configuration_hash = {}) ⇒ Object
Instance Method Details
#configuration ⇒ Object Also known as: config
5 6 7 |
# File 'lib/dispatch-rider/publisher/configuration_support.rb', line 5 def configuration @configuration ||= Configuration.new end |
#configure(configuration_hash = {}) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/dispatch-rider/publisher/configuration_support.rb', line 10 def configure(configuration_hash = {}) if block_given? yield configuration else configuration.parse(configuration_hash) end end |