Class: RatPackSwagger::SwaggerOperation
- Inherits:
-
Object
- Object
- RatPackSwagger::SwaggerOperation
- Includes:
- SwaggerType
- Defined in:
- lib/swagger_spec.rb
Instance Attribute Summary collapse
-
#consumes ⇒ Object
Returns the value of attribute consumes.
-
#deprecated ⇒ Object
Returns the value of attribute deprecated.
-
#description ⇒ Object
Returns the value of attribute description.
-
#externalDocs ⇒ Object
Returns the value of attribute externalDocs.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
-
#produces ⇒ Object
Returns the value of attribute produces.
-
#responses ⇒ Object
Returns the value of attribute responses.
-
#schemes ⇒ Object
Returns the value of attribute schemes.
-
#security ⇒ Object
Returns the value of attribute security.
-
#summary ⇒ Object
Returns the value of attribute summary.
-
#tags ⇒ Object
Returns the value of attribute tags.
Instance Method Summary collapse
-
#initialize ⇒ SwaggerOperation
constructor
A new instance of SwaggerOperation.
- #swagger? ⇒ Boolean
Methods included from SwaggerType
Constructor Details
#initialize ⇒ SwaggerOperation
Returns a new instance of SwaggerOperation.
28 29 30 31 32 33 34 35 36 |
# File 'lib/swagger_spec.rb', line 28 def initialize = [] @consumes = [] @produces = [] @parameters = [] @responses = {} @schemes = [] @security = [] end |
Instance Attribute Details
#consumes ⇒ Object
Returns the value of attribute consumes.
25 26 27 |
# File 'lib/swagger_spec.rb', line 25 def consumes @consumes end |
#deprecated ⇒ Object
Returns the value of attribute deprecated.
25 26 27 |
# File 'lib/swagger_spec.rb', line 25 def deprecated @deprecated end |
#description ⇒ Object
Returns the value of attribute description.
25 26 27 |
# File 'lib/swagger_spec.rb', line 25 def description @description end |
#externalDocs ⇒ Object
Returns the value of attribute externalDocs.
25 26 27 |
# File 'lib/swagger_spec.rb', line 25 def externalDocs @externalDocs end |
#parameters ⇒ Object
Returns the value of attribute parameters.
25 26 27 |
# File 'lib/swagger_spec.rb', line 25 def parameters @parameters end |
#produces ⇒ Object
Returns the value of attribute produces.
25 26 27 |
# File 'lib/swagger_spec.rb', line 25 def produces @produces end |
#responses ⇒ Object
Returns the value of attribute responses.
25 26 27 |
# File 'lib/swagger_spec.rb', line 25 def responses @responses end |
#schemes ⇒ Object
Returns the value of attribute schemes.
25 26 27 |
# File 'lib/swagger_spec.rb', line 25 def schemes @schemes end |
#security ⇒ Object
Returns the value of attribute security.
25 26 27 |
# File 'lib/swagger_spec.rb', line 25 def security @security end |
#summary ⇒ Object
Returns the value of attribute summary.
25 26 27 |
# File 'lib/swagger_spec.rb', line 25 def summary @summary end |
#tags ⇒ Object
Returns the value of attribute tags.
25 26 27 |
# File 'lib/swagger_spec.rb', line 25 def end |
Instance Method Details
#swagger? ⇒ Boolean
38 39 40 |
# File 'lib/swagger_spec.rb', line 38 def swagger? to_h != {} end |