Module: NotionRubyMapping::IsEmptyIsNotEmpty

Included in:
DateBaseProperty, EmailProperty, FilesProperty, MultiProperty, NumberProperty, PhoneNumberProperty, SelectProperty, TextProperty, UrlProperty
Defined in:
lib/notion_ruby_mapping/properties/property.rb

Overview

module for make query of is_empty and is_not_empty

Instance Method Summary collapse

Instance Method Details

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

Returns generated Query object.

Parameters:

  • rollup (String) (defaults to: nil)

    Rollup name

  • rollup_type (String) (defaults to: nil)

    Rollup type

Returns:

See Also:



299
300
301
# File 'lib/notion_ruby_mapping/properties/property.rb', line 299

def filter_is_empty(rollup = nil, rollup_type = nil)
  make_filter_query "is_empty", true, rollup, rollup_type
end

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

Returns generated Query object.

Parameters:

  • rollup (String) (defaults to: nil)

    Rollup name

  • rollup_type (String) (defaults to: nil)

    Rollup type

Returns:

See Also:



307
308
309
# File 'lib/notion_ruby_mapping/properties/property.rb', line 307

def filter_is_not_empty(rollup = nil, rollup_type = nil)
  make_filter_query "is_not_empty", true, rollup, rollup_type
end