Class: TransactionIsolation::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



7
8
9
10
# File 'lib/transaction_isolation/configuration.rb', line 7

def initialize
  @mysql_isolation_variable = 'tx_isolation'
  @detect_mysql_isolation_variable = true
end

Instance Attribute Details

#detect_mysql_isolation_variableObject

Returns the value of attribute detect_mysql_isolation_variable.



5
6
7
# File 'lib/transaction_isolation/configuration.rb', line 5

def detect_mysql_isolation_variable
  @detect_mysql_isolation_variable
end

#mysql_isolation_variableObject

Returns the value of attribute mysql_isolation_variable.



5
6
7
# File 'lib/transaction_isolation/configuration.rb', line 5

def mysql_isolation_variable
  @mysql_isolation_variable
end