Module: Saml::Base::XmlMapperInstanceMethods

Defined in:
lib/saml/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#from_xml=(value) ⇒ Object (writeonly)

Sets the attribute from_xml

Parameters:

  • value

    the value to set the attribute from_xml to.



31
32
33
# File 'lib/saml/base.rb', line 31

def from_xml=(value)
  @from_xml = value
end

Instance Method Details

#from_xml?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/saml/base.rb', line 33

def from_xml?
  @from_xml
end

#initialize(attributes = {}) ⇒ Object



25
26
27
28
29
# File 'lib/saml/base.rb', line 25

def initialize(attributes = {})
  attributes.each do |key, value|
    send("#{key}=", value) if respond_to?("#{key}=") && value
  end
end

#use_original(object) ⇒ Object



37
38
39
40
# File 'lib/saml/base.rb', line 37

def use_original(object)
  registered_namespaces.merge!(Saml::Util.collect_extra_namespaces(object.xml_value))
  object.use_parsed
end