Module: NotionRubyMapping::ContainsDoesNotContain

Included in:
EmailProperty, FormulaProperty, MultiProperty, PhoneNumberProperty, RollupProperty, TextProperty, UrlProperty
Defined in:
lib/notion_ruby_mapping/properties/property.rb

Overview

module for make query of contains and does_not_contain

Instance Method Summary collapse

Instance Method Details

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

Returns generated Query object.

Parameters:

  • value (String)

    Query value

  • rollup (String) (defaults to: nil)

    Rollup name

  • rollup_type (String) (defaults to: nil)

    Rollup type

Returns:

See Also:



255
256
257
# File 'lib/notion_ruby_mapping/properties/property.rb', line 255

def filter_contains(value, rollup = nil, rollup_type = nil)
  make_filter_query "contains", value, rollup, rollup_type
end

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

Returns generated Query object.

Parameters:

  • value (String)

    Query value

  • rollup (String) (defaults to: nil)

    Rollup name

  • rollup_type (String) (defaults to: nil)

    Rollup type

Returns:

See Also:



264
265
266
# File 'lib/notion_ruby_mapping/properties/property.rb', line 264

def filter_does_not_contain(value, rollup = nil, rollup_type = nil)
  make_filter_query "does_not_contain", value, rollup, rollup_type
end