module AllscriptsUnityClient

A library for consuming Allscripts Unity web services.

Constants

VERSION

Public Class Methods

create(options = {}) click to toggle source

Create an instance of the Unity client.

options

See ClientOptions.

Returns an instance of Client.

# File lib/allscripts_unity_client.rb, line 32
def self.create(options = {})
  options[:mode] ||= :json
  options[:raw_dates] ||= false
  if options[:log] != false # explicitly
    options[:log] = true
  end

  if options[:mode] == :json
    client_driver = JSONClientDriver.new(options)
  else
    raise ArgumentError, ':mode must be :json' unless options[:mode] == :json
  end

  Client.new(client_driver)
end