Method: Fixtures::Hash#optional_contact

Defined in:
lib/data_model/fixtures/hash.rb

#optional_contactExample

hash contact example that is optional

Returns:



50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/data_model/fixtures/hash.rb', line 50

def optional_contact
	Example.new(
		[:hash, { optional: true },
			[:first_name, :string],
			[:last_name, :string, { optional: true }],
			[:email, :string]],
		variants: {
			valid: example_contact,
			missing: nil
		},
	)
end