Class: Maestrano::Saml::AttributeValue

Inherits:
String
  • Object
show all
Defined in:
lib/maestrano/saml/attribute_value.rb

Overview

Wrapper for AttributeValue with multiple values It is subclass of String to be backwards compatible Use AttributeValue#values to get all values as an array

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(str = "", values = []) ⇒ AttributeValue

Returns a new instance of AttributeValue.



9
10
11
12
# File 'lib/maestrano/saml/attribute_value.rb', line 9

def initialize(str="", values=[])
  @values = values
  super(str.to_s)
end

Instance Attribute Details

#valuesObject

Returns the value of attribute values.



8
9
10
# File 'lib/maestrano/saml/attribute_value.rb', line 8

def values
  @values
end