Class: NfseGyn::SoapClient
- Inherits:
-
Object
- Object
- NfseGyn::SoapClient
- Defined in:
- lib/nfse_gyn/soap_client.rb
Instance Method Summary collapse
Instance Method Details
permalink #call(method, object) ⇒ Object
[View source]
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 |