Class: Operations::Configuration
- Inherits:
-
Object
- Object
- Operations::Configuration
- Defined in:
- lib/operations/configuration.rb
Instance Attribute Summary collapse
-
#foreign_key_suffix ⇒ Object
Returns the value of attribute foreign_key_suffix.
-
#primary_key_name ⇒ Object
Returns the value of attribute primary_key_name.
-
#primary_key_type ⇒ Object
Returns the value of attribute primary_key_type.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 |
# File 'lib/operations/configuration.rb', line 7 def initialize self.primary_key_name = :id self.primary_key_type = :integer self.foreign_key_suffix = "_id" end |
Instance Attribute Details
#foreign_key_suffix ⇒ Object
Returns the value of attribute foreign_key_suffix.
5 6 7 |
# File 'lib/operations/configuration.rb', line 5 def foreign_key_suffix @foreign_key_suffix end |
#primary_key_name ⇒ Object
Returns the value of attribute primary_key_name.
5 6 7 |
# File 'lib/operations/configuration.rb', line 5 def primary_key_name @primary_key_name end |
#primary_key_type ⇒ Object
Returns the value of attribute primary_key_type.
5 6 7 |
# File 'lib/operations/configuration.rb', line 5 def primary_key_type @primary_key_type end |