Class: Grape::Router::GreedyRoute
- Extended by:
- Forwardable
- Defined in:
- lib/grape/router/greedy_route.rb
Instance Attribute Summary collapse
-
#allow_header ⇒ Object
readonly
Returns the value of attribute allow_header.
-
#endpoint ⇒ Object
readonly
Returns the value of attribute endpoint.
Attributes inherited from BaseRoute
#namespace, #options, #pattern, #prefix, #regexp_capture_group, #regexp_capture_index, #settings
Instance Method Summary collapse
-
#initialize(pattern, endpoint:, allow_header:) ⇒ GreedyRoute
constructor
A new instance of GreedyRoute.
- #params ⇒ Object
- #params_for(_input) ⇒ Object
Methods inherited from BaseRoute
#default, #failure, #pattern_regexp, #resolve_capture_group!, #success, #to_regexp
Constructor Details
#initialize(pattern, endpoint:, allow_header:) ⇒ GreedyRoute
Returns a new instance of GreedyRoute.
15 16 17 18 19 |
# File 'lib/grape/router/greedy_route.rb', line 15 def initialize(pattern, endpoint:, allow_header:) super(pattern) @endpoint = endpoint @allow_header = allow_header end |
Instance Attribute Details
#allow_header ⇒ Object (readonly)
Returns the value of attribute allow_header.
13 14 15 |
# File 'lib/grape/router/greedy_route.rb', line 13 def allow_header @allow_header end |
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint.
13 14 15 |
# File 'lib/grape/router/greedy_route.rb', line 13 def endpoint @endpoint end |
Instance Method Details
#params ⇒ Object
21 22 23 |
# File 'lib/grape/router/greedy_route.rb', line 21 def params nil end |
#params_for(_input) ⇒ Object
25 26 27 |
# File 'lib/grape/router/greedy_route.rb', line 25 def params_for(_input) nil end |