Class: Blnk::Transaction

Inherits:
Resourceable show all
Defined in:
lib/blnk/transaction.rb

Overview

Transaction representation

Defined Under Namespace

Classes: CreateContract

Instance Method Summary collapse

Methods inherited from Resourceable

#_id, all, all_handler, check_vars, create, create_contract_new, find, find_request, handler, inj_handler, #persisted?, #reload, resource_path, resources_path, search, search_contract_new, search_handler, search_path, using_resp, with_handler, wrap_call

Methods included from Client

#base_uri, #client, #get_request, #post_request, #put_request

Instance Method Details

#commitObject



54
# File 'lib/blnk/transaction.rb', line 54

def commit = short_hander(resp: req_inflight(body: { status: 'commit' }))

#refundObject



52
# File 'lib/blnk/transaction.rb', line 52

def refund = short_hander(resp: req_refund)

#voidObject



53
# File 'lib/blnk/transaction.rb', line 53

def void = short_hander(resp: req_inflight(body: { status: 'void' }))