module SAML2::IndexedObject
Attributes
index[RW]
@return [Integer]
Public Class Methods
included(klass)
click to toggle source
# File lib/saml2/indexed_object.rb, line 91 def self.included(klass) klass.const_set(:Array, Array.dup) end
new(*)
click to toggle source
Calls superclass method
# File lib/saml2/indexed_object.rb, line 10 def initialize(*) @is_default = nil super end
Public Instance Methods
build(builder, *)
click to toggle source
(see Base#build
)
Calls superclass method
# File lib/saml2/indexed_object.rb, line 85 def build(builder, *) super builder.parent.children.last["index"] = index builder.parent.children.last["isDefault"] = default? if default_defined? end
default?()
click to toggle source
# File lib/saml2/indexed_object.rb, line 21 def default? !!@is_default end
default_defined?()
click to toggle source
# File lib/saml2/indexed_object.rb, line 25 def default_defined? !@is_default.nil? end
eql?(other)
click to toggle source
Calls superclass method
# File lib/saml2/indexed_object.rb, line 15 def eql?(other) index == other.index && default? == other.default? && super end
from_xml(node)
click to toggle source
(see Base#from_xml
)
Calls superclass method
# File lib/saml2/indexed_object.rb, line 30 def from_xml(node) @index = node["index"]&.to_i @is_default = node["isDefault"] && node["isDefault"] == "true" super end