Class: SimpleSchema::ConverterProperties

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_schema/converter_properties.rb

Class Method Summary collapse

Class Method Details

.build(data, schema, options) ⇒ Object



3
4
5
6
# File 'lib/simple_schema/converter_properties.rb', line 3

def self.build(data, schema, options)
  return data unless (schema[:type] == :object)
  return Converter::new(schema[:properties], options).translate(data)
end