Class: Swaggard::Swagger::Parameters::Base
- Inherits:
-
Object
- Object
- Swaggard::Swagger::Parameters::Base
- Defined in:
- lib/swaggard/swagger/parameters/base.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#is_required ⇒ Object
writeonly
Sets the attribute is_required.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
6 7 8 |
# File 'lib/swaggard/swagger/parameters/base.rb', line 6 def description @description end |
#is_required=(value) ⇒ Object (writeonly)
Sets the attribute is_required
7 8 9 |
# File 'lib/swaggard/swagger/parameters/base.rb', line 7 def is_required=(value) @is_required = value end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/swaggard/swagger/parameters/base.rb', line 6 def name @name end |
Instance Method Details
#to_doc ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/swaggard/swagger/parameters/base.rb', line 9 def to_doc { 'name' => @name, 'in' => @in, 'required' => @is_required, 'type' => @data_type, 'description' => description } end |