Class: OasRails::YARD::ResponseExampleTag
- Inherits:
-
ExampleTag
- Object
- YARD::Tags::Tag
- ExampleTag
- OasRails::YARD::ResponseExampleTag
- Defined in:
- lib/oas_rails/yard/response_example_tag.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
Attributes inherited from ExampleTag
Instance Method Summary collapse
-
#initialize(tag_name, text, content: {}, code: 200) ⇒ ResponseExampleTag
constructor
A new instance of ResponseExampleTag.
Constructor Details
#initialize(tag_name, text, content: {}, code: 200) ⇒ ResponseExampleTag
Returns a new instance of ResponseExampleTag.
6 7 8 9 |
# File 'lib/oas_rails/yard/response_example_tag.rb', line 6 def initialize(tag_name, text, content: {}, code: 200) super(tag_name, text, content:) @code = code end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
4 5 6 |
# File 'lib/oas_rails/yard/response_example_tag.rb', line 4 def code @code end |