Class: Lisk::Raw
- Inherits:
-
Object
- Object
- Lisk::Raw
- Defined in:
- lib/lisk/raw.rb
Overview
Implements raw APIs of the Lisk Core node.
Instance Attribute Summary collapse
-
#client ⇒ Object
A “lisk/client” connecting to a Lisk Core API node.
Instance Method Summary collapse
-
#accounts ⇒ Object
The “accounts” API.
-
#blocks ⇒ Object
The “blocks” API.
-
#dapps ⇒ Object
The “dapps” API.
-
#delegates ⇒ Object
The “delegates” API.
-
#delegates_forgers ⇒ Object
The “delegates/forgers” API.
-
#delegates_forging ⇒ Object
The “delegates/forging” API.
-
#initialize(client) ⇒ Raw
constructor
Initializing the API with a Lisk Core API client.
-
#method_missing(name, *args, &block) ⇒ Object
Handles unimplemented methods.
-
#node_constants ⇒ Object
The “node/constants” API.
-
#node_status ⇒ Object
The “node/status” API.
-
#peers ⇒ Object
The “peers” API.
-
#signatures ⇒ Object
The “signatures” API.
-
#transactions ⇒ Object
The “transactions” API.
-
#transactions_unconfirmed ⇒ Object
The “transactions/unconfirmed” API.
-
#transactions_unprocessed ⇒ Object
The “transactions/unprocessed” API.
-
#transactions_unsigned ⇒ Object
The “transactions/unsigned” API.
-
#voters ⇒ Object
The “voters” API.
-
#votes ⇒ Object
The “votes” API.
Constructor Details
#initialize(client) ⇒ Raw
Initializing the API with a Lisk Core API client.
11 12 13 14 15 16 17 18 |
# File 'lib/lisk/raw.rb', line 11 def initialize client if not client.nil? @client = client return self else return nil end end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
Handles unimplemented methods
185 186 187 |
# File 'lib/lisk/raw.rb', line 185 def method_missing name, *args, &block todo "#{self}::#{name} METHOD MISSING" end |
Instance Attribute Details
#client ⇒ Object
A “lisk/client” connecting to a Lisk Core API node.
8 9 10 |
# File 'lib/lisk/raw.rb', line 8 def client @client end |
Instance Method Details
#accounts ⇒ Object
The “accounts” API
25 26 27 |
# File 'lib/lisk/raw.rb', line 25 def accounts todo "#{self}::#{__method__} UNIMPLEMENTED" end |
#blocks ⇒ Object
The “blocks” API
30 31 32 |
# File 'lib/lisk/raw.rb', line 30 def blocks todo "#{self}::#{__method__} UNIMPLEMENTED" end |
#dapps ⇒ Object
The “dapps” API
35 36 37 |
# File 'lib/lisk/raw.rb', line 35 def dapps todo "#{self}::#{__method__} UNIMPLEMENTED" end |
#delegates ⇒ Object
The “delegates” API
40 41 42 |
# File 'lib/lisk/raw.rb', line 40 def delegates todo "#{self}::#{__method__} UNIMPLEMENTED" end |
#delegates_forgers ⇒ Object
The “delegates/forgers” API
45 46 47 |
# File 'lib/lisk/raw.rb', line 45 def delegates_forgers todo "#{self}::#{__method__} UNIMPLEMENTED" end |
#delegates_forging ⇒ Object
The “delegates/forging” API
50 51 52 |
# File 'lib/lisk/raw.rb', line 50 def delegates_forging todo "#{self}::#{__method__} UNIMPLEMENTED" end |
#node_constants ⇒ Object
The “node/constants” API
55 56 57 |
# File 'lib/lisk/raw.rb', line 55 def node_constants todo "#{self}::#{__method__} UNIMPLEMENTED" end |
#node_status ⇒ Object
The “node/status” API
60 61 62 |
# File 'lib/lisk/raw.rb', line 60 def node_status todo "#{self}::#{__method__} UNIMPLEMENTED" end |
#peers ⇒ Object
The “peers” API
65 66 67 |
# File 'lib/lisk/raw.rb', line 65 def peers todo "#{self}::#{__method__} UNIMPLEMENTED" end |
#signatures ⇒ Object
The “signatures” API
70 71 72 |
# File 'lib/lisk/raw.rb', line 70 def signatures todo "#{self}::#{__method__} UNIMPLEMENTED" end |
#transactions ⇒ Object
The “transactions” API
75 76 77 |
# File 'lib/lisk/raw.rb', line 75 def transactions todo "#{self}::#{__method__} UNIMPLEMENTED" end |
#transactions_unconfirmed ⇒ Object
The “transactions/unconfirmed” API
85 86 87 |
# File 'lib/lisk/raw.rb', line 85 def transactions_unconfirmed todo "#{self}::#{__method__} UNIMPLEMENTED" end |
#transactions_unprocessed ⇒ Object
The “transactions/unprocessed” API
90 91 92 |
# File 'lib/lisk/raw.rb', line 90 def transactions_unprocessed todo "#{self}::#{__method__} UNIMPLEMENTED" end |
#transactions_unsigned ⇒ Object
The “transactions/unsigned” API
80 81 82 |
# File 'lib/lisk/raw.rb', line 80 def transactions_unsigned todo "#{self}::#{__method__} UNIMPLEMENTED" end |
#voters ⇒ Object
The “voters” API
100 101 102 |
# File 'lib/lisk/raw.rb', line 100 def voters todo "#{self}::#{__method__} UNIMPLEMENTED" end |
#votes ⇒ Object
The “votes” API
95 96 97 |
# File 'lib/lisk/raw.rb', line 95 def votes todo "#{self}::#{__method__} UNIMPLEMENTED" end |