Class: OasRails::YARD::ResponseExampleTag

Inherits:
ExampleTag
  • Object
show all
Defined in:
lib/oas_rails/yard/response_example_tag.rb

Instance Attribute Summary collapse

Attributes inherited from ExampleTag

#content

Instance Method Summary collapse

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

#codeObject

Returns the value of attribute code.



4
5
6
# File 'lib/oas_rails/yard/response_example_tag.rb', line 4

def code
  @code
end