Class: LucidIntercom::Convert

Inherits:
Object
  • Object
show all
Defined in:
lib/lucid_intercom/convert.rb

Instance Method Summary collapse

Instance Method Details

#call(attributes) ⇒ Hash

Parameters:

  • attributes (Hash)

Returns:

  • (Hash)


10
11
12
13
14
# File 'lib/lucid_intercom/convert.rb', line 10

def call(attributes)
  attributes.each_with_object({}) do |(k, obj), h|
    h[k] = convert(obj)
  end
end