Class: SAML2::Endpoint
Direct Known Subclasses
Defined Under Namespace
Modules: Bindings Classes: Indexed
Instance Attribute Summary collapse
-
#binding ⇒ Object
readonly
Returns the value of attribute binding.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Attributes inherited from Base
Instance Method Summary collapse
- #==(rhs) ⇒ Object
- #build(builder, element) ⇒ Object
- #from_xml(node) ⇒ Object
-
#initialize(location = nil, binding = Bindings::HTTP_POST) ⇒ Endpoint
constructor
A new instance of Endpoint.
Methods inherited from Base
from_xml, load_object_array, load_string_array, lookup_qname, #to_s, #to_xml
Constructor Details
#initialize(location = nil, binding = Bindings::HTTP_POST) ⇒ Endpoint
Returns a new instance of Endpoint.
12 13 14 |
# File 'lib/saml2/endpoint.rb', line 12 def initialize(location = nil, binding = Bindings::HTTP_POST) @location, @binding = location, binding end |
Instance Attribute Details
#binding ⇒ Object (readonly)
Returns the value of attribute binding.
10 11 12 |
# File 'lib/saml2/endpoint.rb', line 10 def binding @binding end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
10 11 12 |
# File 'lib/saml2/endpoint.rb', line 10 def location @location end |
Instance Method Details
#==(rhs) ⇒ Object
16 17 18 |
# File 'lib/saml2/endpoint.rb', line 16 def ==(rhs) location == rhs.location && binding == rhs.binding end |
#build(builder, element) ⇒ Object
26 27 28 |
# File 'lib/saml2/endpoint.rb', line 26 def build(builder, element) builder['md'].__send__(element, 'Location' => location, 'Binding' => binding) end |
#from_xml(node) ⇒ Object
20 21 22 23 24 |
# File 'lib/saml2/endpoint.rb', line 20 def from_xml(node) super @location = node['Location'] @binding = node['Binding'] end |