Class: BrNfe::Servico::Betha::V1::ConsultaLoteRps
- Inherits:
-
Gateway
- Object
- ActiveModelBase
- Base
- BrNfe::Servico::Base
- Base
- Gateway
- BrNfe::Servico::Betha::V1::ConsultaLoteRps
- Defined in:
- lib/br_nfe/servico/betha/v1/consulta_lote_rps.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#protocolo ⇒ Object
Returns the value of attribute protocolo.
Attributes inherited from BrNfe::Servico::Base
#lote_rps, #numero_lote_rps, #operacao
Attributes inherited from Base
#certificate_pkcs12_password, #certificate_pkcs12_path, #certificate_pkcs12_value, #env
Instance Method Summary collapse
Methods inherited from Gateway
#content_xml, #namespace_identifier, #namespaces, #request, #set_response, #version
Methods inherited from Base
Methods inherited from BrNfe::Servico::Base
Methods inherited from Base
#certificado_obrigatorio?, #certificate, #certificate=, #certificate_key, #certificate_key=, #certificate_pkcs12, #certificate_pkcs12=, #client_wsdl, #env_namespace, #namespace_identifier, #namespaces, #original_response, #response, #wsdl_encoding
Methods included from Helper::HaveEmitente
Methods inherited from ActiveModelBase
#assign_attributes, #default_values, #initialize
Constructor Details
This class inherits a constructor from BrNfe::Servico::Base
Instance Attribute Details
#protocolo ⇒ Object
Returns the value of attribute protocolo.
11 12 13 |
# File 'lib/br_nfe/servico/betha/v1/consulta_lote_rps.rb', line 11 def protocolo @protocolo end |
Instance Method Details
#method_wsdl ⇒ Object
15 16 17 |
# File 'lib/br_nfe/servico/betha/v1/consulta_lote_rps.rb', line 15 def method_wsdl :consultar_lote_rps end |
#wsdl ⇒ Object
7 8 9 |
# File 'lib/br_nfe/servico/betha/v1/consulta_lote_rps.rb', line 7 def wsdl "http://e-gov.betha.com.br/e-nota-contribuinte-#{'test-' if env == :test}ws/consultarLoteRps?wsdl" end |
#xml_builder ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/br_nfe/servico/betha/v1/consulta_lote_rps.rb', line 19 def xml_builder Nokogiri::XML::Builder.new do |xml| xml.Temp { # Pestador / Emitente xml.__send__ :insert, Nokogiri::XML::DocumentFragment.parse( xml_prestador.doc.root.to_s ) xml.Protocolo "#{protocolo}".max_size(50) } end.doc.root end |