Class: BBK::App::Dispatcher::Result
- Inherits:
-
Object
- Object
- BBK::App::Dispatcher::Result
- Defined in:
- lib/bbk/app/dispatcher/result.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#route ⇒ Object
Returns the value of attribute route.
Instance Method Summary collapse
-
#initialize(route, message) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(route, message) ⇒ Result
Returns a new instance of Result.
8 9 10 11 12 13 14 |
# File 'lib/bbk/app/dispatcher/result.rb', line 8 def initialize(route, ) @route = route.is_a?(String) ? Dispatcher::Route.new(route) : route raise 'route must be of type Dispatcher::Route' unless @route.is_a?(Dispatcher::Route) = end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
6 7 8 |
# File 'lib/bbk/app/dispatcher/result.rb', line 6 def end |
#route ⇒ Object
Returns the value of attribute route.
6 7 8 |
# File 'lib/bbk/app/dispatcher/result.rb', line 6 def route @route end |