class SAML2::Endpoint::Indexed::Array
Public Instance Methods
Source
# File lib/saml2/endpoint.rb, line 46 def choose_binding(*bindings) return default.binding if default && bindings.include?(default.binding) super end
Choose a binding supported by this list of endpoints
Note that if there is a default endpoint, its binding will be preferred even over the order of the bindings passed in (as long as it is included in the list at all). @return [String]
Calls superclass method
SAML2::Endpoint::ChoiceHelpers#choose_binding
Source
# File lib/saml2/endpoint.rb, line 58 def choose_endpoint(binding) return default if default && default.binding == binding super end
Choose an endpoint from this list of endpoints that supports a given binding
Note that if there is a default endpoint, it will be returned if its binding matches even over earlier endpoints in the list. @param binding [String] the binding that must match @return [Endpoint, nil]
Calls superclass method
SAML2::Endpoint::ChoiceHelpers#choose_endpoint