Class: Istox::BlockchainService
- Inherits:
-
Object
- Object
- Istox::BlockchainService
- Defined in:
- lib/istox/helpers/blockchain_service.rb
Class Method Summary collapse
- .get_blockchain_receipt_klass ⇒ Object
- .init(blockchain_receipt_klass) ⇒ Object
- .request(sid:, action:, before:, execute:, request_reason: nil) ⇒ Object
- .run(sid:, action:, before:, execute:) ⇒ Object
Class Method Details
.get_blockchain_receipt_klass ⇒ Object
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:, request_reason: nil) ⇒ Object
11 12 13 |
# File 'lib/istox/helpers/blockchain_service.rb', line 11 def self.request(sid:, action:, before:, execute:, request_reason: nil) start(sid: sid, action: action, before: before, execute: execute, is_request: true, request_reason: request_reason) 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 |