Class: Istox::BlockchainService

Inherits:
Object
  • Object
show all
Defined in:
lib/istox/helpers/blockchain_service.rb

Class Method Summary collapse

Class Method Details

.get_blockchain_receipt_klassObject



7
8
9
# File 'lib/istox/helpers/blockchain_service.rb', line 7

def self.get_blockchain_receipt_klass
  @@blockchain_receipt_klass
end

.init(blockchain_receipt_klass) ⇒ Object



3
4
5
# File 'lib/istox/helpers/blockchain_service.rb', line 3

def self.init(blockchain_receipt_klass)
  @@blockchain_receipt_klass = blockchain_receipt_klass
end

.request(sid:, action:, before:, execute:, before_start: nil, request_reason: nil) ⇒ Object



11
12
13
# File 'lib/istox/helpers/blockchain_service.rb', line 11

def self.request(sid:, action:, before:,  execute:, before_start: nil, request_reason: nil)
  start(sid: sid, action: action, before: before, before_start: before_start, execute: execute, is_request: true, request_reason: request_reason)
end

.run(sid:, action:, before:, execute:, before_start: nil) ⇒ Object



15
16
17
# File 'lib/istox/helpers/blockchain_service.rb', line 15

def self.run(sid:, action:, before:, execute:, before_start: nil)
  start(sid: sid, action: action, before: before, before_start: before_start, execute: execute)
end