Module: Fixtures::Boolean

Extended by:
Boolean, T::Sig
Includes:
Fixtures
Included in:
Boolean
Defined in:
lib/data_model/fixtures/boolean.rb

Instance Method Summary collapse

Instance Method Details

#optionalObject



23
24
25
26
27
28
29
30
31
32
33
# File 'lib/data_model/fixtures/boolean.rb', line 23

def optional
	Example.new(
		[:boolean, { optional: true }],
		variants: {
			true: true,
			false: false,
			string: "true",
			missing: nil
		},
	)
end

#simpleObject



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/data_model/fixtures/boolean.rb', line 10

def simple
	Example.new(
		[:boolean],
		variants: {
			true: true,
			false: false,
			string: ["true", true],
			missing: nil
		},
	)
end