Class: Maestrano::Saml::AttributeValue
- Inherits:
-
String
- Object
- String
- Maestrano::Saml::AttributeValue
- 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
-
#values ⇒ Object
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(str = "", values = []) ⇒ AttributeValue
constructor
A new instance of AttributeValue.
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
#values ⇒ Object
Returns the value of attribute values.
8 9 10 |
# File 'lib/maestrano/saml/attribute_value.rb', line 8 def values @values end |