Class: TypesFromSerializers::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/types_from_serializers/generator.rb

Overview

Internal: The configuration for TypeScript generation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#base_serializersObject

Returns the value of attribute base_serializers

Returns:

  • (Object)

    the current value of base_serializers



10
11
12
# File 'lib/types_from_serializers/generator.rb', line 10

def base_serializers
  @base_serializers
end

#name_from_serializerObject

Returns the value of attribute name_from_serializer

Returns:

  • (Object)

    the current value of name_from_serializer



10
11
12
# File 'lib/types_from_serializers/generator.rb', line 10

def name_from_serializer
  @name_from_serializer
end

#native_typesObject

Returns the value of attribute native_types

Returns:

  • (Object)

    the current value of native_types



10
11
12
# File 'lib/types_from_serializers/generator.rb', line 10

def native_types
  @native_types
end

#output_dirObject

Returns the value of attribute output_dir

Returns:

  • (Object)

    the current value of output_dir



10
11
12
# File 'lib/types_from_serializers/generator.rb', line 10

def output_dir
  @output_dir
end

#serializers_dirsObject

Returns the value of attribute serializers_dirs

Returns:

  • (Object)

    the current value of serializers_dirs



10
11
12
# File 'lib/types_from_serializers/generator.rb', line 10

def serializers_dirs
  @serializers_dirs
end

#sql_to_typescript_type_mappingObject

Returns the value of attribute sql_to_typescript_type_mapping

Returns:

  • (Object)

    the current value of 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_typeObject



19
20
21
# File 'lib/types_from_serializers/generator.rb', line 19

def unknown_type
  sql_to_typescript_type_mapping.default
end