Sha256: 5dcb170e926b09a7436bb04ea6cca93dbd1df67781c88eeefcd5e44d15786ba4
Contents?: true
Size: 621 Bytes
Versions: 2
Compression:
Stored size: 621 Bytes
Contents
# frozen_string_literal: true module BrInvoicesPdf module Nfce module Parser module Company extend Util::XmlLocate extend Util::MountParams module_function EMIT_ROOT_PATH = "#{Util::XmlLocate::ROOT_PATH}/emit" def execute(xml) { name: locate_element(xml, "#{EMIT_ROOT_PATH}/xNome"), cnpj: locate_element(xml, "#{EMIT_ROOT_PATH}/CNPJ"), state_number: locate_element(xml, "#{EMIT_ROOT_PATH}/IE"), address: mount(xml, address_params(EMIT_ROOT_PATH, 'Emit')) } end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
br_invoices_pdf-0.2.7 | lib/br_invoices_pdf/nfce/parser/company.rb |
br_invoices_pdf-0.2.6.alpha.19 | lib/br_invoices_pdf/nfce/parser/company.rb |