Class: Lightning::RPC
- Inherits:
-
Object
- Object
- Lightning::RPC
- Defined in:
- lib/lightning/rpc.rb
Overview
RPC client for the ‘lightningd` daemon.
Instance Attribute Summary collapse
-
#log ⇒ Object
readonly
Returns the value of attribute log.
-
#socket_path ⇒ Object
readonly
Returns the value of attribute socket_path.
Instance Method Summary collapse
-
#initialize(socket_path, log) ⇒ RPC
constructor
A new instance of RPC.
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
#log ⇒ Object (readonly)
Returns the value of attribute log.
7 8 9 |
# File 'lib/lightning/rpc.rb', line 7 def log @log end |
#socket_path ⇒ Object (readonly)
Returns the value of attribute socket_path.
6 7 8 |
# File 'lib/lightning/rpc.rb', line 6 def socket_path @socket_path end |