Class: OpenApiAnnotator::Attribute
- Defined in:
- lib/open_api_annotator/attribute.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
Attributes inherited from Field
Instance Method Summary collapse
-
#initialize(name, type, format, nullable) ⇒ Attribute
constructor
A new instance of Attribute.
Methods inherited from Field
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
#format ⇒ Object
Returns the value of attribute format.
3 4 5 |
# File 'lib/open_api_annotator/attribute.rb', line 3 def format @format end |