Class: EasyTalk::Configuration
- Inherits:
-
Object
- Object
- EasyTalk::Configuration
- Defined in:
- lib/easy_talk/configuration.rb
Instance Attribute Summary collapse
-
#auto_validations ⇒ Object
Returns the value of attribute auto_validations.
-
#default_additional_properties ⇒ Object
Returns the value of attribute default_additional_properties.
-
#exclude_associations ⇒ Object
Returns the value of attribute exclude_associations.
-
#exclude_foreign_keys ⇒ Object
Returns the value of attribute exclude_foreign_keys.
-
#exclude_primary_key ⇒ Object
Returns the value of attribute exclude_primary_key.
-
#exclude_timestamps ⇒ Object
Returns the value of attribute exclude_timestamps.
-
#excluded_columns ⇒ Object
Returns the value of attribute excluded_columns.
-
#nilable_is_optional ⇒ Object
Returns the value of attribute nilable_is_optional.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/easy_talk/configuration.rb', line 9 def initialize @exclude_foreign_keys = true @exclude_associations = true @excluded_columns = [] @exclude_primary_key = true @exclude_timestamps = true @default_additional_properties = false @nilable_is_optional = false @auto_validations = true # New option: enable validations by default end |
Instance Attribute Details
#auto_validations ⇒ Object
Returns the value of attribute auto_validations.
5 6 7 |
# File 'lib/easy_talk/configuration.rb', line 5 def auto_validations @auto_validations end |
#default_additional_properties ⇒ Object
Returns the value of attribute default_additional_properties.
5 6 7 |
# File 'lib/easy_talk/configuration.rb', line 5 def default_additional_properties @default_additional_properties end |
#exclude_associations ⇒ Object
Returns the value of attribute exclude_associations.
5 6 7 |
# File 'lib/easy_talk/configuration.rb', line 5 def exclude_associations @exclude_associations end |
#exclude_foreign_keys ⇒ Object
Returns the value of attribute exclude_foreign_keys.
5 6 7 |
# File 'lib/easy_talk/configuration.rb', line 5 def exclude_foreign_keys @exclude_foreign_keys end |
#exclude_primary_key ⇒ Object
Returns the value of attribute exclude_primary_key.
5 6 7 |
# File 'lib/easy_talk/configuration.rb', line 5 def exclude_primary_key @exclude_primary_key end |
#exclude_timestamps ⇒ Object
Returns the value of attribute exclude_timestamps.
5 6 7 |
# File 'lib/easy_talk/configuration.rb', line 5 def @exclude_timestamps end |
#excluded_columns ⇒ Object
Returns the value of attribute excluded_columns.
5 6 7 |
# File 'lib/easy_talk/configuration.rb', line 5 def excluded_columns @excluded_columns end |
#nilable_is_optional ⇒ Object
Returns the value of attribute nilable_is_optional.
5 6 7 |
# File 'lib/easy_talk/configuration.rb', line 5 def nilable_is_optional @nilable_is_optional end |