Class: Xenon::Routing::Rejection
- Inherits:
-
Object
- Object
- Xenon::Routing::Rejection
- Defined in:
- lib/xenon/routing/context.rb
Instance Attribute Summary collapse
-
#info ⇒ Object
readonly
Returns the value of attribute info.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
- #[](name) ⇒ Object
-
#initialize(reason, info = {}) ⇒ Rejection
constructor
A new instance of Rejection.
Constructor Details
#initialize(reason, info = {}) ⇒ Rejection
Returns a new instance of Rejection.
6 7 8 9 |
# File 'lib/xenon/routing/context.rb', line 6 def initialize(reason, info = {}) @reason = reason @info = info end |
Instance Attribute Details
#info ⇒ Object (readonly)
Returns the value of attribute info.
4 5 6 |
# File 'lib/xenon/routing/context.rb', line 4 def info @info end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
4 5 6 |
# File 'lib/xenon/routing/context.rb', line 4 def reason @reason end |
Instance Method Details
#[](name) ⇒ Object
11 12 13 |
# File 'lib/xenon/routing/context.rb', line 11 def [](name) @info[name] end |