Method: BonsaiClient.create

Defined in:
lib/bonsai_client.rb

.create(opts = {}) ⇒ Client

Create a new client for a Bonsai server.

Parameters:

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

    Otions to create the client.

Options Hash (opts):

  • :url (String)

    Bonsai server URL (such as bonsai-server.com)

  • :client_id (String)

    Unique ID for each client

Returns:



24
25
26
# File 'lib/bonsai_client.rb', line 24

def self.create(opts = {})
  Client.new(opts)
end