Class: SAML2::Endpoint
Direct Known Subclasses
Defined Under Namespace
Classes: Indexed
Instance Attribute Summary collapse
- #binding ⇒ String readonly
- #location ⇒ String readonly
Attributes inherited from Base
Instance Method Summary collapse
- #==(other) ⇒ Boolean
-
#build(builder, element) ⇒ void
Serialize this object to XML, as part of a larger document.
-
#from_xml(node) ⇒ void
Parse an XML element into this object.
-
#initialize(location = nil, binding = Bindings::HTTP_POST::URN) ⇒ Endpoint
constructor
A new instance of Endpoint.
Methods inherited from Base
#decrypt, from_xml, #inspect, load_object_array, load_string_array, lookup_qname, #to_s, #to_xml
Constructor Details
Instance Attribute Details
#binding ⇒ String (readonly)
8 9 10 |
# File 'lib/saml2/endpoint.rb', line 8 def binding @binding end |
#location ⇒ String (readonly)
8 9 10 |
# File 'lib/saml2/endpoint.rb', line 8 def location @location end |
Instance Method Details
#==(other) ⇒ Boolean
20 21 22 |
# File 'lib/saml2/endpoint.rb', line 20 def ==(other) location == other.location && binding == other.binding end |
#build(builder, element) ⇒ void
This method returns an undefined value.
Serialize this object to XML, as part of a larger document
32 33 34 |
# File 'lib/saml2/endpoint.rb', line 32 def build(builder, element) builder["md"].__send__(element, "Location" => location, "Binding" => binding) end |
#from_xml(node) ⇒ void
This method returns an undefined value.
Parse an XML element into this object.
25 26 27 28 29 |
# File 'lib/saml2/endpoint.rb', line 25 def from_xml(node) super @location = node["Location"] @binding = node["Binding"] end |