Class: Transactor::Improv::Transaction
- Inherits:
-
Object
- Object
- Transactor::Improv::Transaction
- Defined in:
- lib/transactor/improv/transaction.rb
Instance Attribute Summary collapse
-
#performance ⇒ Object
readonly
Returns the value of attribute performance.
Instance Method Summary collapse
Instance Attribute Details
#performance ⇒ Object (readonly)
Returns the value of attribute performance.
4 5 6 |
# File 'lib/transactor/improv/transaction.rb', line 4 def performance @performance end |
Instance Method Details
#actor ⇒ Object
18 19 20 |
# File 'lib/transactor/improv/transaction.rb', line 18 def actor @performance.actor end |
#perform ⇒ Object
6 7 8 9 10 11 |
# File 'lib/transactor/improv/transaction.rb', line 6 def perform @transaction.performances << @performance @transaction.transaction! do performances.last.perform end end |
#result ⇒ Object
22 23 24 |
# File 'lib/transactor/improv/transaction.rb', line 22 def result @performance.result end |
#rollback(&block) ⇒ Object
13 14 15 16 |
# File 'lib/transactor/improv/transaction.rb', line 13 def rollback(&block) @performance.rollback(&block) self end |