Class: Esquema::Configuration
- Inherits:
-
Object
- Object
- Esquema::Configuration
- Defined in:
- lib/esquema/configuration.rb
Overview
The Configuration module provides configuration options for the gem.
Instance Attribute Summary collapse
-
#exclude_associations ⇒ Object
Returns the value of attribute exclude_associations.
-
#exclude_foreign_keys ⇒ Object
Returns the value of attribute exclude_foreign_keys.
-
#excluded_columns ⇒ Object
Returns the value of attribute excluded_columns.
Instance Method Summary collapse
- #exclude_associations? ⇒ Boolean
- #exclude_foreign_keys? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #reset ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 |
# File 'lib/esquema/configuration.rb', line 8 def initialize reset end |
Instance Attribute Details
#exclude_associations ⇒ Object
Returns the value of attribute exclude_associations.
6 7 8 |
# File 'lib/esquema/configuration.rb', line 6 def exclude_associations @exclude_associations end |
#exclude_foreign_keys ⇒ Object
Returns the value of attribute exclude_foreign_keys.
6 7 8 |
# File 'lib/esquema/configuration.rb', line 6 def exclude_foreign_keys @exclude_foreign_keys end |
#excluded_columns ⇒ Object
Returns the value of attribute excluded_columns.
6 7 8 |
# File 'lib/esquema/configuration.rb', line 6 def excluded_columns @excluded_columns end |
Instance Method Details
#exclude_associations? ⇒ Boolean
22 23 24 |
# File 'lib/esquema/configuration.rb', line 22 def exclude_associations? exclude_associations end |
#exclude_foreign_keys? ⇒ Boolean
18 19 20 |
# File 'lib/esquema/configuration.rb', line 18 def exclude_foreign_keys? exclude_foreign_keys end |
#reset ⇒ Object
12 13 14 15 16 |
# File 'lib/esquema/configuration.rb', line 12 def reset @exclude_associations = false @exclude_foreign_keys = true @excluded_columns = [] end |