Class: Cadet::Transaction
- Inherits:
-
Object
- Object
- Cadet::Transaction
- Defined in:
- lib/cadet/transaction.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#underlying ⇒ Object
Returns the value of attribute underlying.
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(session) ⇒ Transaction
constructor
A new instance of Transaction.
- #success ⇒ Object
Constructor Details
#initialize(session) ⇒ Transaction
Returns a new instance of Transaction.
5 6 7 8 |
# File 'lib/cadet/transaction.rb', line 5 def initialize(session) @session = session @underlying = @session.begin_tx end |
Instance Attribute Details
#underlying ⇒ Object
Returns the value of attribute underlying.
3 4 5 |
# File 'lib/cadet/transaction.rb', line 3 def @underlying end |
Instance Method Details
#close ⇒ Object
13 14 15 |
# File 'lib/cadet/transaction.rb', line 13 def close @underlying.close end |
#success ⇒ Object
10 11 12 |
# File 'lib/cadet/transaction.rb', line 10 def success @underlying.success end |