Class: DCI::Configuration
- Inherits:
-
Object
- Object
- DCI::Configuration
- Defined in:
- lib/dci/configuration.rb
Instance Attribute Summary collapse
-
#on_exception_in_router ⇒ Object
Returns the value of attribute on_exception_in_router.
-
#raise_in_router ⇒ Object
Returns the value of attribute raise_in_router.
-
#router ⇒ Object
Returns the value of attribute router.
-
#routes ⇒ Object
Returns the value of attribute routes.
-
#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.
10 11 12 13 14 15 16 |
# File 'lib/dci/configuration.rb', line 10 def initialize @transaction_class = NullTransaction @routes = Hash.new([]) @router = nil @raise_in_router = false @on_exception_in_router = -> (exception) {} end |
Instance Attribute Details
#on_exception_in_router ⇒ Object
Returns the value of attribute on_exception_in_router.
4 5 6 |
# File 'lib/dci/configuration.rb', line 4 def on_exception_in_router @on_exception_in_router end |
#raise_in_router ⇒ Object
Returns the value of attribute raise_in_router.
4 5 6 |
# File 'lib/dci/configuration.rb', line 4 def raise_in_router @raise_in_router end |
#router ⇒ Object
Returns the value of attribute router.
4 5 6 |
# File 'lib/dci/configuration.rb', line 4 def router @router end |
#routes ⇒ Object
Returns the value of attribute routes.
4 5 6 |
# File 'lib/dci/configuration.rb', line 4 def routes @routes end |
#transaction_class ⇒ Object
Returns the value of attribute transaction_class.
4 5 6 |
# File 'lib/dci/configuration.rb', line 4 def transaction_class @transaction_class end |