Class: Anchor::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/anchor/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



11
12
13
14
15
16
17
18
19
# File 'lib/anchor/config.rb', line 11

def initialize
  @ar_column_to_type = nil
  @field_case = nil
  @use_active_record_validations = true
  @use_active_record_comment = nil
  @infer_nullable_relationships_as_optional = nil
  @empty_relationship_type = nil
  @use_type_as_schema_name = nil
end

Instance Attribute Details

#ar_column_to_typeObject

Returns the value of attribute ar_column_to_type.



3
4
5
# File 'lib/anchor/config.rb', line 3

def ar_column_to_type
  @ar_column_to_type
end

#empty_relationship_typeObject

Returns the value of attribute empty_relationship_type.



3
4
5
# File 'lib/anchor/config.rb', line 3

def empty_relationship_type
  @empty_relationship_type
end

#field_caseObject

Returns the value of attribute field_case.



3
4
5
# File 'lib/anchor/config.rb', line 3

def field_case
  @field_case
end

#infer_nullable_relationships_as_optionalObject

Returns the value of attribute infer_nullable_relationships_as_optional.



3
4
5
# File 'lib/anchor/config.rb', line 3

def infer_nullable_relationships_as_optional
  @infer_nullable_relationships_as_optional
end

#use_active_record_commentObject

Returns the value of attribute use_active_record_comment.



3
4
5
# File 'lib/anchor/config.rb', line 3

def use_active_record_comment
  @use_active_record_comment
end

#use_active_record_validationsObject

Returns the value of attribute use_active_record_validations.



3
4
5
# File 'lib/anchor/config.rb', line 3

def use_active_record_validations
  @use_active_record_validations
end

#use_type_as_schema_nameObject

Returns the value of attribute use_type_as_schema_name.



3
4
5
# File 'lib/anchor/config.rb', line 3

def use_type_as_schema_name
  @use_type_as_schema_name
end