module SAML2::IndexedObject
Attributes
@return [Integer]
Public Class Methods
Source
# File lib/saml2/indexed_object.rb, line 7 def self.included(klass) klass.const_set(:Array, Array.dup) end
Source
# File lib/saml2/indexed_object.rb, line 14 def initialize(*) @is_default = nil super end
Calls superclass method
Public Instance Methods
Source
# File lib/saml2/indexed_object.rb, line 87 def build(builder, *) super builder.parent.children.last["index"] = index builder.parent.children.last["isDefault"] = default? if default_defined? end
(see Base#build
)
Calls superclass method
Source
# File lib/saml2/indexed_object.rb, line 29 def default_defined? !@is_default.nil? end
Source
# File lib/saml2/indexed_object.rb, line 19 def eql?(other) index == other.index && default? == other.default? && super end
Calls superclass method
Source
# File lib/saml2/indexed_object.rb, line 34 def from_xml(node) @index = node["index"]&.to_i @is_default = node["isDefault"] && node["isDefault"] == "true" super end
(see Base#from_xml
)
Calls superclass method
Private Instance Methods
Source
# File lib/saml2/indexed_object.rb, line 95 def indexed_object_inspect if default_defined? "index=#{index}, default=#{default?}" else "index=#{index}" end end