Class: NfseIssnet::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/nfse_issnet/base.rb

Defined Under Namespace

Classes: RequisicaoAbrasf

Instance Method Summary collapse

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_completoObject



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

#requestObject



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