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:) ⇒ Object



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

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

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



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

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