Class: TypesFromSerializers::Config
- Inherits:
-
Struct
- Object
- Struct
- TypesFromSerializers::Config
- Defined in:
- lib/types_from_serializers/generator.rb
Overview
Internal: The configuration for TypeScript generation.
Instance Attribute Summary collapse
-
#base_serializers ⇒ Object
Returns the value of attribute base_serializers.
-
#name_from_serializer ⇒ Object
Returns the value of attribute name_from_serializer.
-
#native_types ⇒ Object
Returns the value of attribute native_types.
-
#output_dir ⇒ Object
Returns the value of attribute output_dir.
-
#serializers_dirs ⇒ Object
Returns the value of attribute serializers_dirs.
-
#sql_to_typescript_type_mapping ⇒ Object
Returns the value of attribute sql_to_typescript_type_mapping.
Instance Method Summary collapse
Instance Attribute Details
#base_serializers ⇒ Object
Returns the value of attribute base_serializers
10 11 12 |
# File 'lib/types_from_serializers/generator.rb', line 10 def base_serializers @base_serializers end |
#name_from_serializer ⇒ Object
Returns the value of attribute name_from_serializer
10 11 12 |
# File 'lib/types_from_serializers/generator.rb', line 10 def name_from_serializer @name_from_serializer end |
#native_types ⇒ Object
Returns the value of attribute native_types
10 11 12 |
# File 'lib/types_from_serializers/generator.rb', line 10 def native_types @native_types end |
#output_dir ⇒ Object
Returns the value of attribute output_dir
10 11 12 |
# File 'lib/types_from_serializers/generator.rb', line 10 def output_dir @output_dir end |
#serializers_dirs ⇒ Object
Returns the value of attribute serializers_dirs
10 11 12 |
# File 'lib/types_from_serializers/generator.rb', line 10 def serializers_dirs @serializers_dirs end |
#sql_to_typescript_type_mapping ⇒ Object
Returns the value of attribute sql_to_typescript_type_mapping
10 11 12 |
# File 'lib/types_from_serializers/generator.rb', line 10 def sql_to_typescript_type_mapping @sql_to_typescript_type_mapping end |
Instance Method Details
#unknown_type ⇒ Object
19 20 21 |
# File 'lib/types_from_serializers/generator.rb', line 19 def unknown_type sql_to_typescript_type_mapping.default end |