Class: Gexp::Mongoid::Transaction::Instance
- Inherits:
-
Object
- Object
- Gexp::Mongoid::Transaction::Instance
- Includes:
- Mongoid::Document
- Defined in:
- lib/gexp/mongoid/transaction.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#operation ⇒ Object
Returns the value of attribute operation.
Instance Method Summary collapse
- #commit ⇒ Object
- #delete ⇒ Object
-
#initialize(*args) ⇒ Instance
constructor
A new instance of Instance.
Constructor Details
#initialize(*args) ⇒ Instance
Returns a new instance of Instance.
45 46 47 48 |
# File 'lib/gexp/mongoid/transaction.rb', line 45 def initialize(*args) super(*args) Observer.start_transaction!(self) end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
40 41 42 |
# File 'lib/gexp/mongoid/transaction.rb', line 40 def error @error end |
#operation ⇒ Object
Returns the value of attribute operation.
40 41 42 |
# File 'lib/gexp/mongoid/transaction.rb', line 40 def operation @operation end |
Instance Method Details
#commit ⇒ Object
55 56 |
# File 'lib/gexp/mongoid/transaction.rb', line 55 def commit end |
#delete ⇒ Object
50 51 52 53 |
# File 'lib/gexp/mongoid/transaction.rb', line 50 def delete Observer.finish_transaction! super end |