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:, parameters: []) ⇒ Route

Returns a new instance of Route.



130
131
132
133
134
135
136
# File 'lib/open_api_annotator/paths_builder.rb', line 130

def initialize(http_verb:, path:, controller_name:, action_name:, parameters: [])
  self.http_verb = http_verb
  self.path = path
  self.controller_name = controller_name
  self.action_name = action_name
  self.parameters = parameters
end

Instance Attribute Details

#action_nameObject

Returns the value of attribute action_name

Returns:

  • (Object)

    the current value of action_name



129
130
131
# File 'lib/open_api_annotator/paths_builder.rb', line 129

def action_name
  @action_name
end

#controller_nameObject

Returns the value of attribute controller_name

Returns:

  • (Object)

    the current value of controller_name



129
130
131
# File 'lib/open_api_annotator/paths_builder.rb', line 129

def controller_name
  @controller_name
end

#http_verbObject

Returns the value of attribute http_verb

Returns:

  • (Object)

    the current value of http_verb



129
130
131
# File 'lib/open_api_annotator/paths_builder.rb', line 129

def http_verb
  @http_verb
end

#parametersObject

Returns the value of attribute parameters

Returns:

  • (Object)

    the current value of parameters



129
130
131
# File 'lib/open_api_annotator/paths_builder.rb', line 129

def parameters
  @parameters
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



129
130
131
# File 'lib/open_api_annotator/paths_builder.rb', line 129

def path
  @path
end