Class: Operations::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/operations/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_suffixObject

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_nameObject

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_typeObject

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