Class: SwaggerDocsGenerator::Actions::Parameter
- Inherits:
-
Object
- Object
- SwaggerDocsGenerator::Actions::Parameter
- Defined in:
- lib/swagger_docs_generator/parser/actions/parameters.rb
Overview
# Test :parameters
Complete parameters field for action
Instance Method Summary collapse
-
#initialize(&block) ⇒ Parameter
constructor
A new instance of Parameter.
- #to_hash ⇒ Object
Constructor Details
#initialize(&block) ⇒ Parameter
Returns a new instance of Parameter.
15 16 17 18 |
# File 'lib/swagger_docs_generator/parser/actions/parameters.rb', line 15 def initialize(&block) @param = nil instance_eval(&block) if block_given? end |
Instance Method Details
#to_hash ⇒ Object
20 21 22 |
# File 'lib/swagger_docs_generator/parser/actions/parameters.rb', line 20 def to_hash @param.to_hash end |