Class: NfseIssnet::Base
- Inherits:
-
Object
- Object
- NfseIssnet::Base
- Defined in:
- lib/nfse_issnet/base.rb
Direct Known Subclasses
Operations::ConsultaLoteRps, Operations::ConsultaNfse, Operations::ConsultaNfsePorRps, Operations::EnviaLoteRps
Defined Under Namespace
Classes: RequisicaoAbrasf
Instance Method Summary collapse
-
#initialize(xml) ⇒ Base
constructor
A new instance of Base.
- #monta_xml_completo ⇒ Object
- #request ⇒ Object
Constructor Details
#initialize(xml) ⇒ Base
Returns a new instance of Base.
3 4 5 6 7 8 |
# File 'lib/nfse_issnet/base.rb', line 3 def initialize(xml) configure validate_configuration self.content_xml = entity.new(xml) end |
Instance Method Details
#monta_xml_completo ⇒ Object
15 16 17 |
# File 'lib/nfse_issnet/base.rb', line 15 def monta_xml_completo cliente.build_request method_wsdl, message: RequisicaoAbrasf.new(xml_builder) end |
#request ⇒ Object
10 11 12 13 |
# File 'lib/nfse_issnet/base.rb', line 10 def request @original_response = cliente.call(method_wsdl, message: RequisicaoAbrasf.new(xml_builder)) set_response end |