Class: NulogyGraphqlApi::TransactionService::Transaction

Inherits:
Object
  • Object
show all
Defined in:
lib/nulogy_graphql_api/transaction_service.rb

Instance Method Summary collapse

Constructor Details

#initializeTransaction

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

#rollbackObject



20
21
22
# File 'lib/nulogy_graphql_api/transaction_service.rb', line 20

def rollback
  @rollback = true
end

#rolledback?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/nulogy_graphql_api/transaction_service.rb', line 24

def rolledback?
  @rollback
end