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.

Parameters:

  • rollup (String)

    Rollup name

  • rollup_type (String)

    Rollup type

Returns:

See Also:



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

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.

Parameters:

  • rollup (String)

    Rollup name

  • rollup_type (String)

    Rollup type

Returns:

See Also:



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

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