Module: NotionRubyMapping::IsEmptyIsNotEmpty

Overview

module for make query of is_empty and is_not_empty

Instance Method Summary collapse

Instance Method Details

#filter_is_empty(condition: nil, another_type: nil) ⇒ NotionRubyMapping::Query

Returns generated Query object.



311
312
313
# File 'lib/notion_ruby_mapping/properties/property.rb', line 311

def filter_is_empty(condition: nil, another_type: nil)
  make_filter_query "is_empty", true, condition: condition, another_type: another_type
end

#filter_is_not_empty(condition: nil, another_type: nil) ⇒ NotionRubyMapping::Query

Returns generated Query object.



319
320
321
# File 'lib/notion_ruby_mapping/properties/property.rb', line 319

def filter_is_not_empty(condition: nil, another_type: nil)
  make_filter_query "is_not_empty", true, condition: condition, another_type: another_type
end