Class: Spikard::Introspection::RouteSpec
- Inherits:
-
Object
- Object
- Spikard::Introspection::RouteSpec
- Defined in:
- lib/spikard/introspection.rb
Overview
Introspected, per-route metadata derived from a handler at registration time.
Instance Attribute Summary collapse
-
#bindings ⇒ Object
readonly
Returns the value of attribute bindings.
-
#body_param_name ⇒ Object
readonly
Returns the value of attribute body_param_name.
-
#body_type ⇒ Object
readonly
Returns the value of attribute body_type.
-
#handler ⇒ Object
readonly
Returns the value of attribute handler.
Instance Method Summary collapse
-
#initialize(handler, bindings, body_param_name, body_type) ⇒ RouteSpec
constructor
A new instance of RouteSpec.
Constructor Details
#initialize(handler, bindings, body_param_name, body_type) ⇒ RouteSpec
Returns a new instance of RouteSpec.
33 34 35 36 37 38 |
# File 'lib/spikard/introspection.rb', line 33 def initialize(handler, bindings, body_param_name, body_type) @handler = handler @bindings = bindings @body_param_name = body_param_name @body_type = body_type end |
Instance Attribute Details
#bindings ⇒ Object (readonly)
Returns the value of attribute bindings.
31 32 33 |
# File 'lib/spikard/introspection.rb', line 31 def bindings @bindings end |
#body_param_name ⇒ Object (readonly)
Returns the value of attribute body_param_name.
31 32 33 |
# File 'lib/spikard/introspection.rb', line 31 def body_param_name @body_param_name end |
#body_type ⇒ Object (readonly)
Returns the value of attribute body_type.
31 32 33 |
# File 'lib/spikard/introspection.rb', line 31 def body_type @body_type end |
#handler ⇒ Object (readonly)
Returns the value of attribute handler.
31 32 33 |
# File 'lib/spikard/introspection.rb', line 31 def handler @handler end |