Module: PairKit::JsonSchema::Dsl::NumericPartialDsl

Included in:
NumberDsl
Defined in:
lib/pair_kit/json_schema/dsl/partials/numeric_partial_dsl.rb

Instance Method Summary collapse

Instance Method Details

#gt(val) ⇒ Object Also known as: exclusive_minimum



7
8
9
# File 'lib/pair_kit/json_schema/dsl/partials/numeric_partial_dsl.rb', line 7

def gt(val)
  @subject['exclusiveMinimum'] = val
end

#gteq(val) ⇒ Object Also known as: minimum



13
14
15
# File 'lib/pair_kit/json_schema/dsl/partials/numeric_partial_dsl.rb', line 13

def gteq(val)
  @subject['minimum'] = val
end

#lt(val) ⇒ Object Also known as: exclusive_maximum



19
20
21
# File 'lib/pair_kit/json_schema/dsl/partials/numeric_partial_dsl.rb', line 19

def lt(val)
  @subject['exclusiveMaximum'] = val
end

#lteq(val) ⇒ Object Also known as: maximum



25
26
27
# File 'lib/pair_kit/json_schema/dsl/partials/numeric_partial_dsl.rb', line 25

def lteq(val)
  @subject['maximum'] = val
end

#mult_of(val) ⇒ Object Also known as: multiple_of



31
32
33
# File 'lib/pair_kit/json_schema/dsl/partials/numeric_partial_dsl.rb', line 31

def mult_of(val)
  @subject['multipleOf'] = val
end