Class: SwaggerDocsGenerator::Actions::Response
- Inherits:
-
Object
- Object
- SwaggerDocsGenerator::Actions::Response
- Defined in:
- lib/swagger_docs_generator/parser/actions/response.rb
Overview
# Test :response
Complete description field for action
Instance Method Summary collapse
-
#initialize(&block) ⇒ Response
constructor
A new instance of Response.
- #to_hash ⇒ Object
Constructor Details
#initialize(&block) ⇒ Response
Returns a new instance of Response.
14 15 16 |
# File 'lib/swagger_docs_generator/parser/actions/response.rb', line 14 def initialize(&block) instance_eval(&block) if block_given? end |
Instance Method Details
#to_hash ⇒ Object
18 19 20 |
# File 'lib/swagger_docs_generator/parser/actions/response.rb', line 18 def to_hash { @status.to_s => construct } end |