class Nursys::Api

Constants

API_END_POINT

Public Class Methods

call(method, xml) click to toggle source
# File lib/nursys/api.rb, line 8
def call method, xml
  response = self.client.call(method, xml: xml)
  response.body
end
client() click to toggle source
# File lib/nursys/api.rb, line 13
def client
  ::Savon.client(
      wsdl: 'https://services.nursys.com/eNotifyService.svc?wsdl=wsdl0',
      endpoint: 'https://services.nursys.com/ENotifyService.svc',
      log_level: :debug,
      log: true,
      pretty_print_xml: true
  )
end