class

SAML::Attributes

Inherits Enumerable < Reference < Object

SAML2 Attributes from the AttributeStatement

Constructors

new(attrs = {} of String => Array(String | ::Nil))
Source

Class methods

single_value_compatibility
Source
single_value_compatibility=(value : Bool)
Source

Instance methods

==(other : Attributes) : Bool

Compare to another Attributes collection

Source
[](name : String | Symbol) : String | Nil | Array(String | Nil) | Nil

Retrieve attribute value(s) Returns first value if single_value_compatibility = true Returns all values if single_value_compatibility = false

Source
[]=(name : String | Symbol, values)

Set attribute values

Source
add(name : String | Symbol, values = [] of String | ::Nil)

Add values to an attribute

Source
all

Return all attributes as a hash

Source
each

Iterate over all attributes

Source
fetch(name : String | Symbol | Regex) : String | Nil | Array(String | Nil) | Nil

Fetch attribute value using name or regex

Source
includes?(name : String | Symbol) : Bool

Test attribute presence by name

Source
multi(name : String | Symbol) : Array(String | Nil) | Nil

Return all values for an attribute

Source
set(name : String | Symbol, values)
Source
single(name : String | Symbol) : String | Nil

Return first value for an attribute

Source