Class: Wurk::API::Router::Match
- Inherits:
-
Struct
- Object
- Struct
- Wurk::API::Router::Match
- Defined in:
- lib/wurk/api/router.rb
Overview
handler nil means nothing matched the path; allowed then carries the
verbs registered for a path that did match, so the caller can answer
405 with an Allow header instead of a misleading 404.
Instance Attribute Summary collapse
-
#allowed ⇒ Object
Returns the value of attribute allowed.
-
#handler ⇒ Object
Returns the value of attribute handler.
-
#params ⇒ Object
Returns the value of attribute params.
-
#scope ⇒ Object
Returns the value of attribute scope.
Instance Attribute Details
#allowed ⇒ Object
Returns the value of attribute allowed
26 27 28 |
# File 'lib/wurk/api/router.rb', line 26 def allowed @allowed end |
#handler ⇒ Object
Returns the value of attribute handler
26 27 28 |
# File 'lib/wurk/api/router.rb', line 26 def handler @handler end |
#params ⇒ Object
Returns the value of attribute params
26 27 28 |
# File 'lib/wurk/api/router.rb', line 26 def params @params end |
#scope ⇒ Object
Returns the value of attribute scope
26 27 28 |
# File 'lib/wurk/api/router.rb', line 26 def scope @scope end |