Class: Enumerations::Configuration
- Inherits:
-
Object
- Object
- Enumerations::Configuration
- Defined in:
- lib/enumerations/configuration.rb
Instance Attribute Summary collapse
-
#foreign_key_suffix ⇒ Object
Returns the value of attribute foreign_key_suffix.
-
#primary_key ⇒ Object
Returns the value of attribute primary_key.
-
#raise_invalid_value_error ⇒ Object
Returns the value of attribute raise_invalid_value_error.
-
#translate_attributes ⇒ Object
Returns the value of attribute translate_attributes.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
22 23 24 25 26 27 |
# File 'lib/enumerations/configuration.rb', line 22 def initialize @primary_key = nil @foreign_key_suffix = nil @translate_attributes = true @raise_invalid_value_error = true end |
Instance Attribute Details
#foreign_key_suffix ⇒ Object
Returns the value of attribute foreign_key_suffix.
18 19 20 |
# File 'lib/enumerations/configuration.rb', line 18 def foreign_key_suffix @foreign_key_suffix end |
#primary_key ⇒ Object
Returns the value of attribute primary_key.
17 18 19 |
# File 'lib/enumerations/configuration.rb', line 17 def primary_key @primary_key end |
#raise_invalid_value_error ⇒ Object
Returns the value of attribute raise_invalid_value_error.
20 21 22 |
# File 'lib/enumerations/configuration.rb', line 20 def raise_invalid_value_error @raise_invalid_value_error end |
#translate_attributes ⇒ Object
Returns the value of attribute translate_attributes.
19 20 21 |
# File 'lib/enumerations/configuration.rb', line 19 def translate_attributes @translate_attributes end |