Sha256: eab90e89c8adfea691133b84a50caa3141daa135ae9f715f0470aea3928c1ed1

Contents?: true

Size: 427 Bytes

Versions: 17

Compression:

Stored size: 427 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

17 entries across 17 versions & 1 rubygems

Version Path
br_invoices_pdf-0.2.18 lib/br_invoices_pdf/cfe/parser/access_key.rb
br_invoices_pdf-0.2.17 lib/br_invoices_pdf/cfe/parser/access_key.rb
br_invoices_pdf-0.2.16 lib/br_invoices_pdf/cfe/parser/access_key.rb
br_invoices_pdf-0.2.15 lib/br_invoices_pdf/cfe/parser/access_key.rb
br_invoices_pdf-0.2.14 lib/br_invoices_pdf/cfe/parser/access_key.rb
br_invoices_pdf-0.2.14.alpha.23 lib/br_invoices_pdf/cfe/parser/access_key.rb
br_invoices_pdf-0.2.13 lib/br_invoices_pdf/cfe/parser/access_key.rb
br_invoices_pdf-0.2.13.alpha.22 lib/br_invoices_pdf/cfe/parser/access_key.rb
br_invoices_pdf-0.2.12.alpha.21 lib/br_invoices_pdf/cfe/parser/access_key.rb
br_invoices_pdf-0.2.12.alpha.20 lib/br_invoices_pdf/cfe/parser/access_key.rb
br_invoices_pdf-0.2.12 lib/br_invoices_pdf/cfe/parser/access_key.rb
br_invoices_pdf-0.2.11 lib/br_invoices_pdf/cfe/parser/access_key.rb
br_invoices_pdf-0.2.10 lib/br_invoices_pdf/cfe/parser/access_key.rb
br_invoices_pdf-0.2.9 lib/br_invoices_pdf/cfe/parser/access_key.rb
br_invoices_pdf-0.2.8 lib/br_invoices_pdf/cfe/parser/access_key.rb
br_invoices_pdf-0.2.7 lib/br_invoices_pdf/cfe/parser/access_key.rb
br_invoices_pdf-0.2.6.alpha.19 lib/br_invoices_pdf/cfe/parser/access_key.rb