class NWRFC::Transaction
Attributes
handle[R]
Public Class Methods
new(handle)
click to toggle source
# File lib/nwrfc.rb, line 129 def initialize(handle) @handle = handle @error = NWRFCLib::RFCError.new end
Public Instance Methods
commit()
click to toggle source
# File lib/nwrfc.rb, line 134 def commit rc = NWRFCLib.submit_transaction(@handle, @error) NWRFC.check_error(@error) if rc > 0 rc = NWRFCLib.confirm_transaction(@handle, @error) NWRFC.check_error(@error) if rc > 0 rc = NWRFCLib.destroy_transaction(@handle, @error) NWRFC.check_error(@error) if rc > 0 end
Also aliased as: submit