class Lbry::Client

Constants

SUPPORTED_METHODS

Attributes

client[R]

Public Class Methods

add_support_for(lbry_command, http_verb: :post) click to toggle source
# File lib/lbry/client.rb, line 5
def self.add_support_for(lbry_command, http_verb: :post)
  define_method(lbry_command) do |*args, &block|
    client.send(http_verb, lbry_command, *args)
  end
end
new(auth: {}) click to toggle source
# File lib/lbry/client.rb, line 11
def initialize(auth: {})
  @client = Api.new(auth)
end