class EasyTalk::Builders::BaseBuilder
def build
def build @valid_options.each_with_object(schema) do |(constraint_name, value), obj| next if @options[constraint_name].nil? # Use our centralized validation ErrorHelper.validate_constraint_value( property_name: property_name, constraint_name: constraint_name, value_type: value[:type], value: @options[constraint_name] ) obj[value[:key]] = @options[constraint_name] end end