Class: OasRails::YARD::ParameterTag
- Inherits:
-
YARD::Tags::Tag
- Object
- YARD::Tags::Tag
- OasRails::YARD::ParameterTag
- Defined in:
- lib/oas_rails/yard/parameter_tag.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
Returns the value of attribute location.
-
#required ⇒ Object
Returns the value of attribute required.
-
#schema ⇒ Object
Returns the value of attribute schema.
Instance Method Summary collapse
-
#initialize(tag_name, name, text, schema, location, required: false) ⇒ ParameterTag
constructor
A new instance of ParameterTag.
Constructor Details
#initialize(tag_name, name, text, schema, location, required: false) ⇒ ParameterTag
Returns a new instance of ParameterTag.
6 7 8 9 10 11 |
# File 'lib/oas_rails/yard/parameter_tag.rb', line 6 def initialize(tag_name, name, text, schema, location, required: false) super(tag_name, text, nil, name) @schema = schema @required = required @location = location end |
Instance Attribute Details
#location ⇒ Object
Returns the value of attribute location.
4 5 6 |
# File 'lib/oas_rails/yard/parameter_tag.rb', line 4 def location @location end |
#required ⇒ Object
Returns the value of attribute required.
4 5 6 |
# File 'lib/oas_rails/yard/parameter_tag.rb', line 4 def required @required end |
#schema ⇒ Object
Returns the value of attribute schema.
4 5 6 |
# File 'lib/oas_rails/yard/parameter_tag.rb', line 4 def schema @schema end |