Module: Onceler
- Defined in:
- lib/onceler/recorder.rb,
lib/onceler/recordable.rb,
lib/onceler/basic_helpers.rb,
lib/onceler/configuration.rb,
lib/onceler/ambitious_helpers.rb,
lib/onceler/transactions/active_record.rb
Defined Under Namespace
Modules: AmbitiousHelpers, BasicHelpers, Recordable, Transactions
Classes: Configuration, NamedRecording, Recorder, Recording
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.recording ⇒ Object
Returns the value of attribute recording.
14
15
16
|
# File 'lib/onceler/recorder.rb', line 14
def recording
@recording
end
|
Class Method Details
.configuration ⇒ Object
2
3
4
|
# File 'lib/onceler/configuration.rb', line 2
def self.configuration
@configuration ||= Configuration.new
end
|
6
7
8
|
# File 'lib/onceler/configuration.rb', line 6
def self.configure
yield configuration
end
|
.open_transactions ⇒ Object
6
7
8
|
# File 'lib/onceler/recorder.rb', line 6
def open_transactions
@open_transactions ||= 0
end
|
.open_transactions=(val) ⇒ Object
10
11
12
|
# File 'lib/onceler/recorder.rb', line 10
def open_transactions=(val)
@open_transactions = val
end
|
.recording? ⇒ Boolean
16
17
18
|
# File 'lib/onceler/recorder.rb', line 16
def recording?
@recording
end
|