Class: OpenApiAnnotator::Route

Inherits:
Struct
  • Object
show all
Defined in:
lib/open_api_annotator/paths_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject

Returns the value of attribute action_name

Returns:

  • (Object)

    the current value of action_name



84
85
86
# File 'lib/open_api_annotator/paths_builder.rb', line 84

def action_name
  @action_name
end

#controller_nameObject

Returns the value of attribute controller_name

Returns:

  • (Object)

    the current value of controller_name



84
85
86
# File 'lib/open_api_annotator/paths_builder.rb', line 84

def controller_name
  @controller_name
end

#http_verbObject

Returns the value of attribute http_verb

Returns:

  • (Object)

    the current value of http_verb



84
85
86
# File 'lib/open_api_annotator/paths_builder.rb', line 84

def http_verb
  @http_verb
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



84
85
86
# File 'lib/open_api_annotator/paths_builder.rb', line 84

def path
  @path
end