Class: ChangeHealthcare::BaseApiObject

Inherits:
Object
  • Object
show all
Defined in:
lib/change_healthcare/base_api_object.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ BaseApiObject

Returns a new instance of BaseApiObject.



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

def initialize(hash)
  hash.extract!(*self.class.attributes.map{|a|a.to_s}).each_pair {|k,v| public_send("#{k}=",v)}
end

Class Method Details

.attributesObject



2
3
4
# File 'lib/change_healthcare/base_api_object.rb', line 2

def self.attributes
  raise "Not Implemented"
end

.chc_object_nameObject



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

def self.chc_object_name
  raise "Not Implemented"
end

.configurationObject



14
15
16
# File 'lib/change_healthcare/base_api_object.rb', line 14

def self.configuration
  ChangeHealthcare.configuration
end