Class: ClearConnect::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/clearconnect/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



10
11
12
13
14
15
16
17
# File 'lib/clearconnect/configuration.rb', line 10

def initialize
  @username = nil
  @password = nil
  @site_name = nil
  @format = :json
  @session = false
  @endpoints = nil
end

Instance Attribute Details

#formatObject

Returns the value of attribute format.



3
4
5
# File 'lib/clearconnect/configuration.rb', line 3

def format
  @format
end

#passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/clearconnect/configuration.rb', line 3

def password
  @password
end

#sessionObject

Returns the value of attribute session.



3
4
5
# File 'lib/clearconnect/configuration.rb', line 3

def session
  @session
end

#site_nameObject

Returns the value of attribute site_name.



3
4
5
# File 'lib/clearconnect/configuration.rb', line 3

def site_name
  @site_name
end

#usernameObject

Returns the value of attribute username.



3
4
5
# File 'lib/clearconnect/configuration.rb', line 3

def username
  @username
end

Instance Method Details

#endpointsObject

– do endpoints need to be set at any point? ++



26
27
28
29
30
31
# File 'lib/clearconnect/configuration.rb', line 26

def endpoints
  @endpoints ||= {
    clearconnect: "https://agencystaffing.apihealthcare.com/#{@site_name}/clearConnect/2_0/index.cfm",
    wsdl: "https://agencymedia001.apihealthcare.com/#{@site_name}/wsdl/staffingWebService.wsdl"
  }
end

#endpoints=(options = {}) ⇒ Object

– I don’t think this is necessary ++



36
37
38
39
40
41
# File 'lib/clearconnect/configuration.rb', line 36

def endpoints=(options = {})
  if options.nil? 
    @endpoints
  end
  @endpoints = options
end