Class: Quiver::Mappers::Transaction
- Inherits:
-
Object
- Object
- Quiver::Mappers::Transaction
- Defined in:
- lib/quiver/mappers.rb
Instance Method Summary collapse
- #good? ⇒ Boolean
-
#initialize ⇒ Transaction
constructor
A new instance of Transaction.
- #rollback! ⇒ Object
- #rollback? ⇒ Boolean
Constructor Details
#initialize ⇒ Transaction
Returns a new instance of Transaction.
14 15 16 |
# File 'lib/quiver/mappers.rb', line 14 def initialize self.rollback = false end |
Instance Method Details
#good? ⇒ Boolean
26 27 28 |
# File 'lib/quiver/mappers.rb', line 26 def good? !rollback end |
#rollback! ⇒ Object
18 19 20 |
# File 'lib/quiver/mappers.rb', line 18 def rollback! self.rollback = true end |
#rollback? ⇒ Boolean
22 23 24 |
# File 'lib/quiver/mappers.rb', line 22 def rollback? rollback end |