Class: ChangeHealthcare::Servlet
- Inherits:
-
BaseApiObject
- Object
- BaseApiObject
- ChangeHealthcare::Servlet
- Defined in:
- lib/change_healthcare/servlet.rb
Class Method Summary collapse
Methods inherited from BaseApiObject
attributes, configuration, #initialize
Constructor Details
This class inherits a constructor from ChangeHealthcare::BaseApiObject
Class Method Details
.api_order_servlet(params) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/change_healthcare/servlet.rb', line 9 def self.api_order_servlet(params) resp = call_api(__method__.to_s.camelize(:lower), params) data_nodes = resp.xml.root.children.map { |node| Hash.from_xml(node.to_s)['OBJECT'] } data_nodes.each_with_object({}) do |node, hsh| hsh[node['name']] ||= [] hsh[node['name']] << node end end |
.chc_object_name ⇒ Object
5 6 7 |
# File 'lib/change_healthcare/servlet.rb', line 5 def self.chc_object_name 'servlets' end |