Module: NotionRubyMapping::GreaterThanLessThan

Included in:
FormulaProperty, NumberProperty, RollupProperty
Defined in:
lib/notion_ruby_mapping/properties/property.rb

Overview

module for make query of starts_with and ends_with

Instance Method Summary collapse

Instance Method Details

#filter_greater_than(value, rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query

Returns generated Query object.

Parameters:

  • value (Number)

    Query value

  • rollup (String) (defaults to: nil)

    Rollup name

  • rollup_type (String) (defaults to: nil)

    Rollup type

Returns:



266
267
268
# File 'lib/notion_ruby_mapping/properties/property.rb', line 266

def filter_greater_than(value, rollup = nil, rollup_type = nil)
  make_filter_query "greater_than", value, rollup, rollup_type
end

#filter_greater_than_or_equal_to(value, rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query

Returns generated Query object.

Parameters:

  • value (Number)

    Query value

  • rollup (String) (defaults to: nil)

    Rollup name

  • rollup_type (String) (defaults to: nil)

    Rollup type

Returns:



282
283
284
# File 'lib/notion_ruby_mapping/properties/property.rb', line 282

def filter_greater_than_or_equal_to(value, rollup = nil, rollup_type = nil)
  make_filter_query "greater_than_or_equal_to", value, rollup, rollup_type
end

#filter_less_than(value, rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query

Returns generated Query object.

Parameters:

  • value (Number)

    Query value

  • rollup (String) (defaults to: nil)

    Rollup name

  • rollup_type (String) (defaults to: nil)

    Rollup type

Returns:



274
275
276
# File 'lib/notion_ruby_mapping/properties/property.rb', line 274

def filter_less_than(value, rollup = nil, rollup_type = nil)
  make_filter_query "less_than", value, rollup, rollup_type
end

#filter_less_than_or_equal_to(value, rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query

Returns generated Query object.

Parameters:

  • value (Number)

    Query value

  • rollup (String) (defaults to: nil)

    Rollup name

  • rollup_type (String) (defaults to: nil)

    Rollup type

Returns:



290
291
292
# File 'lib/notion_ruby_mapping/properties/property.rb', line 290

def filter_less_than_or_equal_to(value, rollup = nil, rollup_type = nil)
  make_filter_query "less_than_or_equal_to", value, rollup, rollup_type
end