Module: NotionRubyMapping::GreaterThanLessThan

Included in:
FormulaProperty, NumberProperty, RollupProperty, UniqueIdProperty
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, condition: nil, another_type: nil) ⇒ NotionRubyMapping::Query

Returns generated Query object.

Parameters:

  • value (Number)

    Query value

  • rollup (String)

    Rollup name

  • rollup_type (String)

    Rollup type

Returns:



353
354
355
# File 'lib/notion_ruby_mapping/properties/property.rb', line 353

def filter_greater_than(value, condition: nil, another_type: nil)
  make_filter_query "greater_than", value, condition: condition, another_type: another_type
end

#filter_greater_than_or_equal_to(value, condition: nil, another_type: nil) ⇒ NotionRubyMapping::Query

Returns generated Query object.

Parameters:

  • value (Number)

    Query value

  • rollup (String)

    Rollup name

  • rollup_type (String)

    Rollup type

Returns:



369
370
371
# File 'lib/notion_ruby_mapping/properties/property.rb', line 369

def filter_greater_than_or_equal_to(value, condition: nil, another_type: nil)
  make_filter_query "greater_than_or_equal_to", value, condition: condition, another_type: another_type
end

#filter_less_than(value, condition: nil, another_type: nil) ⇒ NotionRubyMapping::Query

Returns generated Query object.

Parameters:

  • value (Number)

    Query value

  • rollup (String)

    Rollup name

  • rollup_type (String)

    Rollup type

Returns:



361
362
363
# File 'lib/notion_ruby_mapping/properties/property.rb', line 361

def filter_less_than(value, condition: nil, another_type: nil)
  make_filter_query "less_than", value, condition: condition, another_type: another_type
end

#filter_less_than_or_equal_to(value, condition: nil, another_type: nil) ⇒ NotionRubyMapping::Query

Returns generated Query object.

Parameters:

  • value (Number)

    Query value

  • rollup (String)

    Rollup name

  • rollup_type (String)

    Rollup type

Returns:



377
378
379
# File 'lib/notion_ruby_mapping/properties/property.rb', line 377

def filter_less_than_or_equal_to(value, condition: nil, another_type: nil)
  make_filter_query "less_than_or_equal_to", value, condition: condition, another_type: another_type
end