Sha256: 298ca0a555ff2e301d436a953e46c43553e55da7e782c1cf9c7a518e2bbda724
Contents?: true
Size: 686 Bytes
Versions: 1
Compression:
Stored size: 686 Bytes
Contents
class Nanook class Node def initialize(rpc) @rpc = rpc end def block_count rpc(:block_count) end def block_count_type rpc(:block_count_type) end def bootstrap(address:, port:) rpc(:bootstrap, address: address, port: port) end def bootstrap_any rpc(:bootstrap_any) end def frontier_count rpc(:frontier_count) end def peers rpc(:peers) end def representatives rpc(:representatives) end def stop rpc(:stop) end def version rpc(:version) end private def rpc(action, params={}) @rpc.call(action, params) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nanook-0.6.0 | lib/nanook/node.rb |