Class: NfseGyn::SoapClient

Inherits:
Object show all
Defined in:
lib/nfse_gyn/soap_client.rb

Instance Method Summary collapse

Instance Method Details

#call(method, object) ⇒ Object



5
6
7
8
9
# File 'lib/nfse_gyn/soap_client.rb', line 5

def call(method, object)
  xml = "<ArquivoXML><![CDATA[#{object.to_xml}]]></ArquivoXML>"
  payload = client.call(method, message: xml)
  object.class::Response.new payload
end