Class: OpenApiAnnotator::Field
- Inherits:
-
Struct
- Object
- Struct
- OpenApiAnnotator::Field
- Defined in:
- lib/open_api_annotator/field.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#nullable ⇒ Object
Returns the value of attribute nullable.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
2 3 4 |
# File 'lib/open_api_annotator/field.rb', line 2 def name @name end |
#nullable ⇒ Object
Returns the value of attribute nullable
2 3 4 |
# File 'lib/open_api_annotator/field.rb', line 2 def nullable @nullable end |
#type ⇒ Object
Returns the value of attribute type
2 3 4 |
# File 'lib/open_api_annotator/field.rb', line 2 def type @type end |
Instance Method Details
#valid? ⇒ Boolean
3 4 5 6 7 8 9 |
# File 'lib/open_api_annotator/field.rb', line 3 def valid? return false if name.nil? return false if type.nil? return false if nullable.nil? true end |