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