module BonsaiClient
Constants
- NAME
- VERSION
Public Class Methods
checksum_from_response(response)
click to toggle source
Extract file checksum from response data.
@return [String]
# File lib/bonsai_client.rb, line 31 def self.checksum_from_response(response) response[:data][:file_checksum] end
create(opts = {})
click to toggle source
Create a new client for a Bonsai server.
@param [Hash] opts Otions to create the client. @option opts [String] :url Bonsai server URL (such as bonsai-server.com) @option opts [String] :client_id Unique ID for each client
@return [Client]
# File lib/bonsai_client.rb, line 24 def self.create(opts = {}) Client.new(opts) end