Class: OasRails::YARD::ParameterTag

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#locationObject

Returns the value of attribute location.



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

def location
  @location
end

#requiredObject

Returns the value of attribute required.



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

def required
  @required
end

#schemaObject

Returns the value of attribute schema.



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

def schema
  @schema
end