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
- #==(rhs) ⇒ 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
#==(rhs) ⇒ Boolean
18 19 20 |
# File 'lib/saml2/endpoint.rb', line 18 def ==(rhs) location == rhs.location && binding == rhs.binding end |
#build(builder, element) ⇒ void
This method returns an undefined value.
Serialize this object to XML, as part of a larger document
30 31 32 |
# File 'lib/saml2/endpoint.rb', line 30 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.
23 24 25 26 27 |
# File 'lib/saml2/endpoint.rb', line 23 def from_xml(node) super @location = node['Location'] @binding = node['Binding'] end |