Class: ChangeHealthcare::BaseApiObject
- Inherits:
-
Object
- Object
- ChangeHealthcare::BaseApiObject
show all
- Defined in:
- lib/change_healthcare/base_api_object.rb
Direct Known Subclasses
Caregiver, ClientId, ClinicalReport, HsiLabel, LabConfig, LabSystemCode, ObjectDoc, Order, OrderDiagnosis, OrderableDoc, OrganizationLab, Person, Pharmacy, ProviderCaregiver, Report, ReportDoc, Rx, Servlet
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
Returns a new instance of BaseApiObject.
10
11
12
|
# File 'lib/change_healthcare/base_api_object.rb', line 10
def initialize(hash)
hash.(*self.class.attributes.map{|a|a.to_s}).each_pair {|k,v| public_send("#{k}=",v)}
end
|
Class Method Details
.attributes ⇒ Object
2
3
4
|
# File 'lib/change_healthcare/base_api_object.rb', line 2
def self.attributes
raise "Not Implemented"
end
|
.chc_object_name ⇒ Object
6
7
8
|
# File 'lib/change_healthcare/base_api_object.rb', line 6
def self.chc_object_name
raise "Not Implemented"
end
|