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
25 26 27 28 |
# File 'lib/saml/complex_types/attribute_type.rb', line 25 def attribute_value warn '[DEPRECATED] please use #attribute_values' attribute_values.first.try(:content) end |
#attribute_value=(value) ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/saml/complex_types/attribute_type.rb', line 30 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
19 20 21 22 23 |
# File 'lib/saml/complex_types/attribute_type.rb', line 19 def initialize(*args) = args. @attribute_values ||= [] super(*(args << )) end |