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.



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

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.



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

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