Class: ChangeHealthcare::ApiClient
- Inherits:
-
Object
- Object
- ChangeHealthcare::ApiClient
- Includes:
- Singleton
- Defined in:
- lib/change_healthcare/api_client.rb
Instance Attribute Summary collapse
-
#session_id ⇒ Object
readonly
Returns the value of attribute session_id.
Instance Method Summary collapse
- #call(object_name, operation, params = {}, include_organization = true, session_id = nil) ⇒ Object
- #configuration ⇒ Object
Instance Attribute Details
#session_id ⇒ Object (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 |
#configuration ⇒ Object
10 11 12 |
# File 'lib/change_healthcare/api_client.rb', line 10 def configuration ChangeHealthcare.configuration end |