Class: OpenApiAnnotator::Attribute

Inherits:
Field
  • Object
show all
Defined in:
lib/open_api_annotator/attribute.rb

Instance Attribute Summary collapse

Attributes inherited from Field

#name, #nullable, #type

Instance Method Summary collapse

Methods inherited from Field

#valid?

Constructor Details

#initialize(name, type, format, nullable) ⇒ Attribute

Returns a new instance of Attribute.



5
6
7
8
# File 'lib/open_api_annotator/attribute.rb', line 5

def initialize(name, type, format, nullable)
  super(name, type, nullable)
  self.format = format
end

Instance Attribute Details

#formatObject

Returns the value of attribute format.



3
4
5
# File 'lib/open_api_annotator/attribute.rb', line 3

def format
  @format
end