lib/govdelivery/tms/link_header.rb
def find_link(*attr_pairs)
    links.detect do |link|
      !attr_pairs.detect do |pair|
        !link.attr_pairs.include?(pair)
      end
    end
  end
#
# Find a member link that has the given attributes
#
Find a member link that has the given attributes
Find a member link that has the given attributes
def find_link(*attr_pairs)
    links.detect do |link|
      !attr_pairs.detect do |pair|
        !link.attr_pairs.include?(pair)
      end
    end
  end
def find_link ( * attr_pairs ) links . detect do | link | ! attr_pairs . detect do | pair | ! link . attr_pairs . include? ( pair ) end end end
Find a member link that has the given attributes
Find a member link that has the given attributes
attr_pairs