Class: Scorpio::OpenAPI::V2::Operation
- Inherits:
-
Object
- Object
- Scorpio::OpenAPI::V2::Operation
- Defined in:
- lib/scorpio/openapi.rb
Instance Attribute Summary collapse
-
#http_method ⇒ Object
Returns the value of attribute http_method.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#body_parameter ⇒ Object
there should only be one body parameter; this returns it.
- #request_schema ⇒ Object
Instance Attribute Details
#http_method ⇒ Object
Returns the value of attribute http_method.
142 143 144 |
# File 'lib/scorpio/openapi.rb', line 142 def http_method @http_method end |
#path ⇒ Object
Returns the value of attribute path.
141 142 143 |
# File 'lib/scorpio/openapi.rb', line 141 def path @path end |
Instance Method Details
#body_parameter ⇒ Object
there should only be one body parameter; this returns it
145 146 147 148 149 |
# File 'lib/scorpio/openapi.rb', line 145 def body_parameter (parameters || []).detect do |parameter| parameter['in'] == 'body' end end |