class SwaggerParser::Operation
Attributes
http_method[R]
Public Class Methods
new(source, http_method:)
click to toggle source
@param [String] http_method
@param [Object] source
Calls superclass method
# File lib/swagger_parser/operation.rb, line 16 def initialize(source, http_method:) super(source) @http_method = http_method end
Public Instance Methods
consumes()
click to toggle source
@return [Object]
# File lib/swagger_parser/operation.rb, line 22 def consumes source["consumes"] || [] end
deprecated()
click to toggle source
@return [false, true]
# File lib/swagger_parser/operation.rb, line 27 def deprecated !!source["deprecated"] end
description()
click to toggle source
@return [Object]
# File lib/swagger_parser/operation.rb, line 32 def description source["description"] end
operation_id()
click to toggle source
@return [Object]
# File lib/swagger_parser/operation.rb, line 37 def operation_id source["operationId"] end
parameters()
click to toggle source
@return [SwaggerParser::Parameters]
# File lib/swagger_parser/operation.rb, line 42 def parameters SwaggerParser::Parameters.new(source["parameters"] || {}) end
produces()
click to toggle source
@return [Object]
# File lib/swagger_parser/operation.rb, line 47 def produces source["produces"] end
responses()
click to toggle source
@return [SwaggerParser::Responses]
# File lib/swagger_parser/operation.rb, line 52 def responses SwaggerParser::Responses.new(source["responses"] || {}) end
schemes()
click to toggle source
@return [Object]
# File lib/swagger_parser/operation.rb, line 57 def schemes source["schemes"] end
security()
click to toggle source
@return [Object]
# File lib/swagger_parser/operation.rb, line 62 def security SwaggerParser::Security.new(source["security"] || {}) end
summary()
click to toggle source
@return [Object]
# File lib/swagger_parser/operation.rb, line 67 def summary source["summary"] end