Class: SAML::Metadata::Endpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/saml/metadata/endpoint.rb

Direct Known Subclasses

IndexedEndpoint

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bindingObject (readonly)

Returns the value of attribute binding.



7
8
9
# File 'lib/saml/metadata/endpoint.rb', line 7

def binding
  @binding
end

#locationObject (readonly)

Returns the value of attribute location.



8
9
10
# File 'lib/saml/metadata/endpoint.rb', line 8

def location
  @location
end

#response_locationObject (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