Class: DCI::Configuration
- Inherits:
-
Object
- Object
- DCI::Configuration
- Defined in:
- lib/dci/configuration.rb
Instance Attribute Summary collapse
-
#event_routes ⇒ Object
Returns the value of attribute event_routes.
-
#on_exception_in_router ⇒ Object
Returns the value of attribute on_exception_in_router.
-
#raise_in_event_router ⇒ Object
Returns the value of attribute raise_in_event_router.
-
#route_methods ⇒ Object
Returns the value of attribute route_methods.
-
#transaction_class ⇒ Object
Returns the value of attribute transaction_class.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 15 |
# File 'lib/dci/configuration.rb', line 9 def initialize @transaction_class = NullTransaction @event_routes = Hash.new([]) @route_methods = nil @raise_in_event_router = false @on_exception_in_router = -> (exception) { } end |
Instance Attribute Details
#event_routes ⇒ Object
Returns the value of attribute event_routes.
3 4 5 |
# File 'lib/dci/configuration.rb', line 3 def event_routes @event_routes end |
#on_exception_in_router ⇒ Object
Returns the value of attribute on_exception_in_router.
3 4 5 |
# File 'lib/dci/configuration.rb', line 3 def on_exception_in_router @on_exception_in_router end |
#raise_in_event_router ⇒ Object
Returns the value of attribute raise_in_event_router.
3 4 5 |
# File 'lib/dci/configuration.rb', line 3 def raise_in_event_router @raise_in_event_router end |
#route_methods ⇒ Object
Returns the value of attribute route_methods.
3 4 5 |
# File 'lib/dci/configuration.rb', line 3 def route_methods @route_methods end |
#transaction_class ⇒ Object
Returns the value of attribute transaction_class.
3 4 5 |
# File 'lib/dci/configuration.rb', line 3 def transaction_class @transaction_class end |