class SAML2::Endpoint
Constants
- ResponseLocation
Attributes
@return [String]
@return [String]
@return [String, nil]
Public Class Methods
Source
# File lib/saml2/endpoint.rb, line 101 def initialize(location = nil, binding = Bindings::HTTP_POST::URN, response_location = nil) super() @location = location @binding = binding @response_location = response_location end
@param location [String] @param binding [String] @param response_location
[String, nil]
Calls superclass method
SAML2::Base::new
Public Instance Methods
Source
# File lib/saml2/endpoint.rb, line 110 def ==(other) other.is_a?(Endpoint) && location == other.location && binding == other.binding && response_location == other.response_location end
@param rhs [Endpoint] @return [Boolean]
Source
# File lib/saml2/endpoint.rb, line 124 def build(builder, element) builder["md"].__send__(element, "Location" => location, "Binding" => binding) do |b| b.ResponseLocation = response_location if response_location end end
(see Base#build
)
Source
# File lib/saml2/endpoint.rb, line 133 def effective_response_location response_location || location end
@!attribute @return [String] The {response_location} if there is one, otherwise the {location}
Source
# File lib/saml2/endpoint.rb, line 116 def from_xml(node) super @location = node["Location"] @binding = node["Binding"] @response_location = node["ResponseLocation"] end
(see Base#from_xml
)
Calls superclass method
SAML2::Base::from_xml
Source
# File lib/saml2/endpoint.rb, line 138 def inspect "#<SAML2::Endpoint #{endpoint_inspect}>" end
@return [String]
Private Instance Methods
Source
# File lib/saml2/endpoint.rb, line 144 def endpoint_inspect r = "location=#{location.inspect}" r += " binding=#{binding.inspect}" if binding r += " response_location=#{response_location.inspect}" if response_location r end