Method: Saml::ComplexTypes::AttributeType#attribute_value=

Defined in:
lib/saml/complex_types/attribute_type.rb

#attribute_value=(value) ⇒ Object



34
35
36
37
38
39
40
41
# File 'lib/saml/complex_types/attribute_type.rb', line 34

def attribute_value=(value)
  attribute_value = if value.is_a? String
    Saml::Elements::AttributeValue.new(content: value)
  else
    value
  end
  self.attribute_values = [attribute_value]
end