Module: SamlIdp::Hashable

Extended by:
ActiveSupport::Concern
Included in:
IncomingMetadata
Defined in:
lib/saml_idp/hashable.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#hashablesObject



5
6
7
# File 'lib/saml_idp/hashable.rb', line 5

def hashables
  self.class.hashables
end

#to_hObject



9
10
11
12
13
14
# File 'lib/saml_idp/hashable.rb', line 9

def to_h
  hashables.reduce({}) do |hash, key|
    hash[key.to_sym] = send(key)
    hash
  end
end