Module: NotionRubyMapping::StartsWithEndsWith

Included in:
EmailProperty, FormulaProperty, PhoneNumberProperty, RollupProperty, TextProperty, UrlProperty
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_ends_with(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:



232
233
234
# File 'lib/notion_ruby_mapping/properties/property.rb', line 232

def filter_ends_with(value, rollup = nil, rollup_type = nil)
  make_filter_query "ends_with", value, rollup, rollup_type
end

#filter_starts_with(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:



224
225
226
# File 'lib/notion_ruby_mapping/properties/property.rb', line 224

def filter_starts_with(value, rollup = nil, rollup_type = nil)
  make_filter_query "starts_with", value, rollup, rollup_type
end