Method: NfseGyn::SoapClient#call
- Defined in:
- lib/nfse_gyn/soap_client.rb
#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 |