Sha256: 4aaf58831c1ec3f72b1338ed9798f624dfa7b038b204061b3ac464224d52fa67

Contents?: true

Size: 429 Bytes

Versions: 6

Compression:

Stored size: 429 Bytes

Contents

# frozen_string_literal: true

module BrInvoicesPdf
  module Cfe
    module Parser
      module AccessKey
        extend Util::XmlLocate

        module_function

        def execute(xml)
          element = xml.locate('Signature/SignedInfo').first
          return unless element

          element = element.nodes.last
          return unless element

          element.attributes[:URI]
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
br_invoices_pdf-0.2.24 lib/br_invoices_pdf/cfe/parser/access_key.rb
br_invoices_pdf-0.2.23 lib/br_invoices_pdf/cfe/parser/access_key.rb
br_invoices_pdf-0.2.22 lib/br_invoices_pdf/cfe/parser/access_key.rb
br_invoices_pdf-0.2.21 lib/br_invoices_pdf/cfe/parser/access_key.rb
br_invoices_pdf-0.2.20 lib/br_invoices_pdf/cfe/parser/access_key.rb
br_invoices_pdf-0.2.19 lib/br_invoices_pdf/cfe/parser/access_key.rb