Class: NfseGyn::SoapClient
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 |