module BSat
Constants
- API_HOST
- VERSION
Public Class Methods
client()
click to toggle source
# File lib/blockstream_satellite.rb, line 36 def self.client @client ||= Client.new(lnd_client: self.lnd_client, http_client: self.http_client) end
http_client()
click to toggle source
# File lib/blockstream_satellite.rb, line 26 def self.http_client @http_client ||= Faraday.new(url: API_HOST) do |faraday| faraday.request :multipart faraday.request :url_encoded faraday.response :json, :content_type => /\bjson$/ faraday.adapter Faraday.default_adapter end end
info()
click to toggle source
# File lib/blockstream_satellite.rb, line 40 def self.info self.client.get('/info') end
lnd_client()
click to toggle source
# File lib/blockstream_satellite.rb, line 18 def self.lnd_client @lnd_client ||= Lnrpc::Client.new({}) end
lnd_client=(value)
click to toggle source
# File lib/blockstream_satellite.rb, line 14 def self.lnd_client=(value) @lnd_client = value end
Public Instance Methods
http_client=(value)
click to toggle source
# File lib/blockstream_satellite.rb, line 22 def http_client=(value) @http_client = value end