Class: ClearConnect::Configuration
- Inherits:
-
Object
- Object
- ClearConnect::Configuration
- Defined in:
- lib/clearconnect/configuration.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#password ⇒ Object
Returns the value of attribute password.
-
#session ⇒ Object
Returns the value of attribute session.
-
#site_name ⇒ Object
Returns the value of attribute site_name.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#endpoints ⇒ Object
– do endpoints need to be set at any point? ++.
-
#endpoints=(options = {}) ⇒ Object
– I don’t think this is necessary ++.
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#format ⇒ Object
Returns the value of attribute format.
3 4 5 |
# File 'lib/clearconnect/configuration.rb', line 3 def format @format end |
#password ⇒ Object
Returns the value of attribute password.
3 4 5 |
# File 'lib/clearconnect/configuration.rb', line 3 def password @password end |
#session ⇒ Object
Returns the value of attribute session.
3 4 5 |
# File 'lib/clearconnect/configuration.rb', line 3 def session @session end |
#site_name ⇒ Object
Returns the value of attribute site_name.
3 4 5 |
# File 'lib/clearconnect/configuration.rb', line 3 def site_name @site_name end |
#username ⇒ Object
Returns the value of attribute username.
3 4 5 |
# File 'lib/clearconnect/configuration.rb', line 3 def username @username end |
Instance Method Details
#endpoints ⇒ Object
– 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=( = {}) if .nil? @endpoints end @endpoints = end |