Class: Rage::OpenAPI::Nodes::Method
- Inherits:
-
Object
- Object
- Rage::OpenAPI::Nodes::Method
- Defined in:
- lib/rage/openapi/nodes/method.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#controller ⇒ Object
readonly
Returns the value of attribute controller.
-
#deprecated ⇒ Object
Returns the value of attribute deprecated.
-
#description ⇒ Object
Returns the value of attribute description.
-
#http_method ⇒ Object
Returns the value of attribute http_method.
-
#http_path ⇒ Object
Returns the value of attribute http_path.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
-
#parents ⇒ Object
readonly
Returns the value of attribute parents.
-
#private ⇒ Object
Returns the value of attribute private.
-
#request ⇒ Object
Returns the value of attribute request.
-
#responses ⇒ Object
Returns the value of attribute responses.
-
#summary ⇒ Object
Returns the value of attribute summary.
-
#tag ⇒ Object
Returns the value of attribute tag.
Instance Method Summary collapse
- #auth ⇒ Object
-
#initialize(controller, action, parents) ⇒ Method
constructor
A new instance of Method.
- #root ⇒ Object
Constructor Details
#initialize(controller, action, parents) ⇒ Method
Returns a new instance of Method.
8 9 10 11 12 13 14 15 |
# File 'lib/rage/openapi/nodes/method.rb', line 8 def initialize(controller, action, parents) @controller = controller @action = action @parents = parents @responses = {} @parameters = [] end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
4 5 6 |
# File 'lib/rage/openapi/nodes/method.rb', line 4 def action @action end |
#controller ⇒ Object (readonly)
Returns the value of attribute controller.
4 5 6 |
# File 'lib/rage/openapi/nodes/method.rb', line 4 def controller @controller end |
#deprecated ⇒ Object
Returns the value of attribute deprecated.
5 6 7 |
# File 'lib/rage/openapi/nodes/method.rb', line 5 def deprecated @deprecated end |
#description ⇒ Object
Returns the value of attribute description.
5 6 7 |
# File 'lib/rage/openapi/nodes/method.rb', line 5 def description @description end |
#http_method ⇒ Object
Returns the value of attribute http_method.
5 6 7 |
# File 'lib/rage/openapi/nodes/method.rb', line 5 def http_method @http_method end |
#http_path ⇒ Object
Returns the value of attribute http_path.
5 6 7 |
# File 'lib/rage/openapi/nodes/method.rb', line 5 def http_path @http_path end |
#parameters ⇒ Object
Returns the value of attribute parameters.
5 6 7 |
# File 'lib/rage/openapi/nodes/method.rb', line 5 def parameters @parameters end |
#parents ⇒ Object (readonly)
Returns the value of attribute parents.
4 5 6 |
# File 'lib/rage/openapi/nodes/method.rb', line 4 def parents @parents end |
#private ⇒ Object
Returns the value of attribute private.
5 6 7 |
# File 'lib/rage/openapi/nodes/method.rb', line 5 def private @private end |
#request ⇒ Object
Returns the value of attribute request.
5 6 7 |
# File 'lib/rage/openapi/nodes/method.rb', line 5 def request @request end |
#responses ⇒ Object
Returns the value of attribute responses.
5 6 7 |
# File 'lib/rage/openapi/nodes/method.rb', line 5 def responses @responses end |
#summary ⇒ Object
Returns the value of attribute summary.
5 6 7 |
# File 'lib/rage/openapi/nodes/method.rb', line 5 def summary @summary end |
#tag ⇒ Object
Returns the value of attribute tag.
5 6 7 |
# File 'lib/rage/openapi/nodes/method.rb', line 5 def tag @tag end |