Class: OasRails::YARD::RequestBodyTag

Inherits:
YARD::Tags::Tag
  • Object
show all
Defined in:
lib/oas_rails/yard/request_body_tag.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#klassObject

Returns the value of attribute klass.



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

def klass
  @klass
end

#requiredObject

Returns the value of attribute required.



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

def required
  @required
end

#schemaObject

Returns the value of attribute schema.



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

def schema
  @schema
end