Module: Saml::Base::HappyMapperInstanceMethods

Defined in:
lib/saml/base.rb

Instance Method Summary collapse

Instance Method Details

#from_xml=(bool) ⇒ Object



22
23
24
# File 'lib/saml/base.rb', line 22

def from_xml=(bool)
  @from_xml = bool
end

#from_xml?Boolean

Returns:

  • (Boolean)


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

def from_xml?
  @from_xml
end

#initialize(attributes = {}) ⇒ Object



16
17
18
19
20
# File 'lib/saml/base.rb', line 16

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