Class: TypesFromSerializers::FieldMetadata
- Inherits:
-
Struct
- Object
- Struct
- TypesFromSerializers::FieldMetadata
- Defined in:
- lib/types_from_serializers/generator.rb
Overview
Internal: The type metadata for a serializer field.
Instance Attribute Summary collapse
-
#many ⇒ Object
Returns the value of attribute many.
-
#name ⇒ Object
Returns the value of attribute name.
-
#optional ⇒ Object
Returns the value of attribute optional.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#many ⇒ Object
Returns the value of attribute many
30 31 32 |
# File 'lib/types_from_serializers/generator.rb', line 30 def many @many end |
#name ⇒ Object
Returns the value of attribute name
30 31 32 |
# File 'lib/types_from_serializers/generator.rb', line 30 def name @name end |
#optional ⇒ Object
Returns the value of attribute optional
30 31 32 |
# File 'lib/types_from_serializers/generator.rb', line 30 def optional @optional end |
#type ⇒ Object
Returns the value of attribute type
30 31 32 |
# File 'lib/types_from_serializers/generator.rb', line 30 def type @type end |
Instance Method Details
#typescript_name ⇒ Object
31 32 33 |
# File 'lib/types_from_serializers/generator.rb', line 31 def typescript_name name.to_s.camelize(:lower) end |