Class: SAML::Metadata::Endpoint
- Inherits:
-
Object
- Object
- SAML::Metadata::Endpoint
- Defined in:
- lib/saml/metadata/endpoint.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#binding ⇒ Object
readonly
Returns the value of attribute binding.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#response_location ⇒ Object
readonly
Returns the value of attribute response_location.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#binding ⇒ Object (readonly)
Returns the value of attribute binding.
7 8 9 |
# File 'lib/saml/metadata/endpoint.rb', line 7 def binding @binding end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
8 9 10 |
# File 'lib/saml/metadata/endpoint.rb', line 8 def location @location end |
#response_location ⇒ Object (readonly)
Returns the value of attribute response_location.
9 10 11 |
# File 'lib/saml/metadata/endpoint.rb', line 9 def response_location @response_location end |
Class Method Details
.from_xml(xml) ⇒ Object
11 |
# File 'lib/saml/metadata/endpoint.rb', line 11 def self.from_xml(xml); new.from_xml(xml); end |
Instance Method Details
#from_xml(xml) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/saml/metadata/endpoint.rb', line 13 def from_xml(xml) @binding = xml.attributes['Binding'] @location = URI(xml.attributes['Location']) @response_location = xml.attributes['ResponseLocation'] && URI(xml.attributes['ResponseLocation']) self end |