Module: Synapse::Serialization::Converter::ClassMethods

Defined in:
lib/synapse/serialization/converter.rb

Instance Method Summary collapse

Instance Method Details

#converts(source_type, target_type) ⇒ undefined

Parameters:

  • source_type (Class)
  • target_type (Class)

Returns:

  • (undefined)


17
18
19
20
# File 'lib/synapse/serialization/converter.rb', line 17

def converts(source_type, target_type)
  self.source_type = source_type
  self.target_type = target_type
end