module SAML2::Endpoint::ChoiceHelpers
Public Instance Methods
Source
# File lib/saml2/endpoint.rb, line 11 def choose_binding(*bindings) (bindings & map(&:binding)).first end
Choose a binding supported by this list of endpoints
@return [String]
Source
# File lib/saml2/endpoint.rb, line 19 def choose_endpoint(binding) find { |endpoint| endpoint.binding == binding } end
Choose an endpoint from this list of endpoints that supports a given binding
@param binding [String] the binding that must match @return [Endpoint, nil]