Method: JSONRPC2::Client#initialize

Defined in:
lib/jsonrpc2/client.rb

#initialize(uri, options = {}) ⇒ Client

Create client object

Parameters:

  • uri (String)

    Create client object

  • options (Hash) (defaults to: {})

    Global options



27
28
29
30
31
32
# File 'lib/jsonrpc2/client.rb', line 27

def initialize(uri, options = {})
  @uri = uri
  @client = HTTPClient.new
  @options = options
  @id = 0
end