Method: Evey::Types::Association#cast

Defined in:
lib/evey/types/association.rb

#cast(hash) ⇒ Object



6
7
8
9
10
# File 'lib/evey/types/association.rb', line 6

def cast(hash)
  return if hash.nil?

  hash.transform_values { |v| GlobalID::Locator.locate(v) }
end