Module: ClearConnect

Defined in:
lib/clearconnect.rb,
lib/clearconnect/client.rb,
lib/clearconnect/version.rb,
lib/clearconnect/configuration.rb

Overview

the clearconnect gem handles authentication and message passing between a Ruby/Rails application and the ClearConnect API offered by API Healthcare as a supplement to their Contingent Staffing software.

Defined Under Namespace

Classes: AuthenticateError, Client, Configuration, NoFunctionError

Constant Summary collapse

VERSION =
"0.0.3"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



45
46
47
# File 'lib/clearconnect/configuration.rb', line 45

def configuration
  @configuration
end

Class Method Details

.configureObject

Configure clearconnect someplace sensible, like config/initializers/clearconnect.rb

Examples:

ClearConnect.configure do |c|
  c.username = 'username'
  c.password = 'password'
  c.sitename = 'sitename'
end


58
59
60
61
62
63
# File 'lib/clearconnect/configuration.rb', line 58

def self.configure
  self.configuration ||= Configuration.new
  if block_given?
    yield configuration
  end
end