Class: NfseCarioca::Client
- Inherits:
-
Object
- Object
- NfseCarioca::Client
- Defined in:
- lib/nfse_carioca/client.rb
Instance Method Summary collapse
Instance Method Details
#call(method, object) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/nfse_carioca/client.rb', line 5 def call(method, object) if NfseCarioca.configuration.fake_mode NfseCarioca::FakeResponse.new method, object else payload = client.call(method, message: { inputXML: object.to_xml }) object.class::Response.new payload end end |