Class: OpenApiAnnotator::Route
- Inherits:
-
Struct
- Object
- Struct
- OpenApiAnnotator::Route
- Defined in:
- lib/open_api_annotator/paths_builder.rb
Instance Attribute Summary collapse
-
#action_name ⇒ Object
Returns the value of attribute action_name.
-
#controller_name ⇒ Object
Returns the value of attribute controller_name.
-
#http_verb ⇒ Object
Returns the value of attribute http_verb.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(http_verb:, path:, controller_name:, action_name:) ⇒ Route
constructor
A new instance of Route.
Constructor Details
#initialize(http_verb:, path:, controller_name:, action_name:) ⇒ Route
Returns a new instance of Route.
85 86 87 88 89 90 |
# File 'lib/open_api_annotator/paths_builder.rb', line 85 def initialize(http_verb:, path:, controller_name:, action_name:) self.http_verb = http_verb self.path = path self.controller_name = controller_name self.action_name = action_name end |
Instance Attribute Details
#action_name ⇒ Object
Returns the value of attribute action_name
84 85 86 |
# File 'lib/open_api_annotator/paths_builder.rb', line 84 def action_name @action_name end |
#controller_name ⇒ Object
Returns the value of attribute controller_name
84 85 86 |
# File 'lib/open_api_annotator/paths_builder.rb', line 84 def controller_name @controller_name end |
#http_verb ⇒ Object
Returns the value of attribute http_verb
84 85 86 |
# File 'lib/open_api_annotator/paths_builder.rb', line 84 def http_verb @http_verb end |
#path ⇒ Object
Returns the value of attribute path
84 85 86 |
# File 'lib/open_api_annotator/paths_builder.rb', line 84 def path @path end |