lib/sepa/response.rb
def find_digest_values
        references = {}
        reference_nodes = doc.css('xmlns|Reference', xmlns: DSIG)

        reference_nodes.each do |node|
          uri = node.attr('URI')
          digest_value = node.at('xmlns|DigestValue', xmlns: DSIG).content

          references[uri] = digest_value
        end

        references
      end
# Finds all reference nodes with digest values in the document and returns a hash with uri as
# the key and digest as the value.
#
# @return [Hash] hash of digests with reference uri as the key
Finds all reference nodes with digest values in the document and returns a hash with uri as
the key and digest as the value.
Finds all reference nodes with digest values in the document and returns a hash with uri as the key and digest as the value .
def find_digest_values
        references = {}
        reference_nodes = doc.css('xmlns|Reference', xmlns: DSIG)
        reference_nodes.each do |node|
          uri = node.attr('URI')
          digest_value = node.at('xmlns|DigestValue', xmlns: DSIG).content
          references[uri] = digest_value
        end
        references
      end
def find_digest_values references = { } reference_nodes = doc . css ( 'xmlns|Reference' , xmlns : DSIG ) reference_nodes . each do | node | uri = node . attr ( 'URI' ) digest_value = node . at ( 'xmlns|DigestValue' , xmlns : DSIG ) . content references [ uri ] = digest_value end references end
Finds all reference nodes with digest values in the document and returns a hash with uri as
the key and digest as the value.
Finds all reference nodes with digest values in the document and returns a hash with uri as the key and digest as the value .
hash of digests with reference uri as the key
hash of digests with reference uri as the key
Hash