Class: NulogyGraphqlApi::TransactionService::Transaction
- Inherits:
-
Object
- Object
- NulogyGraphqlApi::TransactionService::Transaction
- Defined in:
- lib/nulogy_graphql_api/transaction_service.rb
Instance Method Summary collapse
-
#initialize ⇒ Transaction
constructor
A new instance of Transaction.
- #rollback ⇒ Object
- #rolledback? ⇒ Boolean
Constructor Details
#initialize ⇒ Transaction
Returns a new instance of Transaction.
16 17 18 |
# File 'lib/nulogy_graphql_api/transaction_service.rb', line 16 def initialize @rollback = false end |
Instance Method Details
#rollback ⇒ Object
20 21 22 |
# File 'lib/nulogy_graphql_api/transaction_service.rb', line 20 def rollback @rollback = true end |
#rolledback? ⇒ Boolean
24 25 26 |
# File 'lib/nulogy_graphql_api/transaction_service.rb', line 24 def rolledback? @rollback end |