Class: Lisk::Raw

Inherits:
Object
  • Object
show all
Defined in:
lib/lisk/raw.rb

Overview

Implements raw APIs of the Lisk Core node.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clientObject

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

#accountsObject

The “accounts” API



25
26
27
# File 'lib/lisk/raw.rb', line 25

def accounts
  todo "#{self}::#{__method__} UNIMPLEMENTED"
end

#blocksObject

The “blocks” API



30
31
32
# File 'lib/lisk/raw.rb', line 30

def blocks
  todo "#{self}::#{__method__} UNIMPLEMENTED"
end

#dappsObject

The “dapps” API



35
36
37
# File 'lib/lisk/raw.rb', line 35

def dapps
  todo "#{self}::#{__method__} UNIMPLEMENTED"
end

#delegatesObject

The “delegates” API



40
41
42
# File 'lib/lisk/raw.rb', line 40

def delegates
  todo "#{self}::#{__method__} UNIMPLEMENTED"
end

#delegates_forgersObject

The “delegates/forgers” API



45
46
47
# File 'lib/lisk/raw.rb', line 45

def delegates_forgers
  todo "#{self}::#{__method__} UNIMPLEMENTED"
end

#delegates_forgingObject

The “delegates/forging” API



50
51
52
# File 'lib/lisk/raw.rb', line 50

def delegates_forging
  todo "#{self}::#{__method__} UNIMPLEMENTED"
end

#node_constantsObject

The “node/constants” API



55
56
57
# File 'lib/lisk/raw.rb', line 55

def node_constants
  todo "#{self}::#{__method__} UNIMPLEMENTED"
end

#node_statusObject

The “node/status” API



60
61
62
# File 'lib/lisk/raw.rb', line 60

def node_status
  todo "#{self}::#{__method__} UNIMPLEMENTED"
end

#peersObject

The “peers” API



65
66
67
# File 'lib/lisk/raw.rb', line 65

def peers
  todo "#{self}::#{__method__} UNIMPLEMENTED"
end

#signaturesObject

The “signatures” API



70
71
72
# File 'lib/lisk/raw.rb', line 70

def signatures
  todo "#{self}::#{__method__} UNIMPLEMENTED"
end

#transactionsObject

The “transactions” API



75
76
77
# File 'lib/lisk/raw.rb', line 75

def transactions
  todo "#{self}::#{__method__} UNIMPLEMENTED"
end

#transactions_unconfirmedObject

The “transactions/unconfirmed” API



85
86
87
# File 'lib/lisk/raw.rb', line 85

def transactions_unconfirmed
  todo "#{self}::#{__method__} UNIMPLEMENTED"
end

#transactions_unprocessedObject

The “transactions/unprocessed” API



90
91
92
# File 'lib/lisk/raw.rb', line 90

def transactions_unprocessed
  todo "#{self}::#{__method__} UNIMPLEMENTED"
end

#transactions_unsignedObject

The “transactions/unsigned” API



80
81
82
# File 'lib/lisk/raw.rb', line 80

def transactions_unsigned
  todo "#{self}::#{__method__} UNIMPLEMENTED"
end

#votersObject

The “voters” API



100
101
102
# File 'lib/lisk/raw.rb', line 100

def voters
  todo "#{self}::#{__method__} UNIMPLEMENTED"
end

#votesObject

The “votes” API



95
96
97
# File 'lib/lisk/raw.rb', line 95

def votes
  todo "#{self}::#{__method__} UNIMPLEMENTED"
end