Module: Saml::ComplexTypes::AttributeType
- Extended by:
- ActiveSupport::Concern
- Includes:
- Base
- Included in:
- Elements::Attribute, Elements::RequestedAttribute
- Defined in:
- lib/saml/complex_types/attribute_type.rb
Instance Method Summary collapse
Instance Method Details
#attribute_value ⇒ Object
29 30 31 32 |
# File 'lib/saml/complex_types/attribute_type.rb', line 29 def attribute_value warn '[DEPRECATED] `attribute_value` please use #attribute_values' attribute_values.first.try(:content) end |
#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 |
#initialize(*args) ⇒ Object
23 24 25 26 27 |
# File 'lib/saml/complex_types/attribute_type.rb', line 23 def initialize(*args) = args. @attribute_values ||= [] super(*(args << )) end |