Class: Lightning::RPC

Inherits:
Object
  • Object
show all
Defined in:
lib/lightning/rpc.rb

Overview

RPC client for the ‘lightningd` daemon.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(socket_path, log) ⇒ RPC

Returns a new instance of RPC.



9
10
11
12
# File 'lib/lightning/rpc.rb', line 9

def initialize(socket_path, log)
  @socket_path = socket_path
  @log = log
end

Instance Attribute Details

#logObject (readonly)

Returns the value of attribute log.



7
8
9
# File 'lib/lightning/rpc.rb', line 7

def log
  @log
end

#socket_pathObject (readonly)

Returns the value of attribute socket_path.



6
7
8
# File 'lib/lightning/rpc.rb', line 6

def socket_path
  @socket_path
end