class OpenID::Yadis::CompoundFilter

Attributes

subfilters[R]

Public Class Methods

new(subfilters) click to toggle source

Create a new filter that applies a set of filters to an endpoint and collects their results.

# File lib/openid/yadis/filters.rb, line 121
def initialize(subfilters)
  @subfilters = subfilters
end

Public Instance Methods

get_service_endpoints(yadis_url, service_element) click to toggle source

Generate all endpoint objects for all of the subfilters of this filter and return their concatenation.

# File lib/openid/yadis/filters.rb, line 127
def get_service_endpoints(yadis_url, service_element)
  endpoints = []
  @subfilters.each { |subfilter|
    endpoints += subfilter.get_service_endpoints(yadis_url, service_element)
  }
  return endpoints
end