Class: Anchor::Config
- Inherits:
-
Object
- Object
- Anchor::Config
- Defined in:
- lib/anchor/config.rb
Instance Attribute Summary collapse
-
#ar_column_to_type ⇒ Object
Returns the value of attribute ar_column_to_type.
-
#empty_relationship_type ⇒ Object
Returns the value of attribute empty_relationship_type.
-
#field_case ⇒ Object
Returns the value of attribute field_case.
-
#infer_nullable_relationships_as_optional ⇒ Object
Returns the value of attribute infer_nullable_relationships_as_optional.
-
#use_active_record_comment ⇒ Object
Returns the value of attribute use_active_record_comment.
-
#use_active_record_validations ⇒ Object
Returns the value of attribute use_active_record_validations.
-
#use_type_as_schema_name ⇒ Object
Returns the value of attribute use_type_as_schema_name.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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_type ⇒ Object
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_type ⇒ Object
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_case ⇒ Object
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_optional ⇒ Object
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_comment ⇒ Object
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_validations ⇒ Object
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_name ⇒ Object
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 |