module Saml::AttributeFetcher

Public Instance Methods

fetch_attribute(key) click to toggle source
# File lib/saml/attribute_fetcher.rb, line 6
def fetch_attribute(key)
  fetch_attribute_value(key).content
end
fetch_attribute_value(key) click to toggle source
# File lib/saml/attribute_fetcher.rb, line 14
def fetch_attribute_value(key)
  fetch_attribute_values(key).first
end
fetch_attribute_values(key) click to toggle source
# File lib/saml/attribute_fetcher.rb, line 18
def fetch_attribute_values(key)
  attributes.find_all { |attr| attr.name == key }.flat_map(&:attribute_values)
end
fetch_attributes(key) click to toggle source
# File lib/saml/attribute_fetcher.rb, line 10
def fetch_attributes(key)
  fetch_attribute_values(key).map(&:content)
end