Class: ChangeHealthcare::ApiClient

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/change_healthcare/api_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#session_idObject (readonly)

Returns the value of attribute session_id.



3
4
5
# File 'lib/change_healthcare/api_client.rb', line 3

def session_id
  @session_id
end

Instance Method Details

#call(object_name, operation, params = {}, include_organization = true, session_id = nil) ⇒ Object



5
6
7
8
# File 'lib/change_healthcare/api_client.rb', line 5

def call(object_name, operation, params = {}, include_organization = true, session_id = nil)
  xml = build_xml(object_name, operation, params, include_organization, session_id)
  do_request "#{configuration.base_url}?request=#{xml}"
end

#configurationObject



10
11
12
# File 'lib/change_healthcare/api_client.rb', line 10

def configuration
  ChangeHealthcare.configuration
end