Class: SAML2::Endpoint::Indexed

Inherits:
SAML2::Endpoint show all
Includes:
IndexedObject
Defined in:
lib/saml2/endpoint.rb

Defined Under Namespace

Classes: Array

Instance Attribute Summary

Attributes included from IndexedObject

#index

Attributes inherited from SAML2::Endpoint

#binding, #location, #response_location

Attributes inherited from Base

#xml

Instance Method Summary collapse

Methods included from IndexedObject

#build, #default?, #default_defined?, #from_xml, included

Methods inherited from SAML2::Endpoint

#==, #build, #effective_response_location, #from_xml

Methods inherited from Base

#build, #decrypt, from_xml, #from_xml, load_object_array, load_string_array, lookup_qname, #to_s, #to_xml

Constructor Details

#initialize(location = nil, index = nil, is_default = nil, binding = Bindings::HTTP_POST::URN, response_location = nil) ⇒ Indexed

Returns a new instance of Indexed.

Parameters:

  • location (String) (defaults to: nil)
  • index (Integer) (defaults to: nil)
  • is_default (true, false, nil) (defaults to: nil)
  • binding (String) (defaults to: Bindings::HTTP_POST::URN)
  • response_location (String, nil) (defaults to: nil)


70
71
72
73
74
75
76
77
78
# File 'lib/saml2/endpoint.rb', line 70

def initialize(location = nil,
               index = nil,
               is_default = nil,
               binding = Bindings::HTTP_POST::URN,
               response_location = nil)
  super(location, binding, response_location)
  @index = index
  @is_default = is_default
end

Instance Method Details

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


80
81
82
83
84
85
# File 'lib/saml2/endpoint.rb', line 80

def eql?(other)
  location == other.location &&
    binding == other.binding &&
    response_location == other.response_location &&
    super
end

#inspectString

Returns:

  • (String)


88
89
90
# File 'lib/saml2/endpoint.rb', line 88

def inspect
  "#<SAML2::Endpoint::Indexed #{endpoint_inspect} #{indexed_object_inspect}>"
end