Class: SAML::Metadata::IndexedEndpoint

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

Instance Attribute Summary collapse

Attributes inherited from Endpoint

#binding, #location, #response_location

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#indexObject (readonly)

Returns the value of attribute index.



5
6
7
# File 'lib/saml/metadata/indexed_endpoint.rb', line 5

def index
  @index
end

#is_defaultObject (readonly)

Returns the value of attribute is_default.



6
7
8
# File 'lib/saml/metadata/indexed_endpoint.rb', line 6

def is_default
  @is_default
end

Class Method Details

.from_xml(xml) ⇒ Object



8
# File 'lib/saml/metadata/indexed_endpoint.rb', line 8

def self.from_xml(xml); new.from_xml(xml); end

Instance Method Details

#from_xml(xml) ⇒ Object



10
11
12
13
14
15
# File 'lib/saml/metadata/indexed_endpoint.rb', line 10

def from_xml(xml)
  super(xml)
  @index      = xml.attributes['Index']
  @is_default = xml.attributes['IsDefault']
  self
end