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:



332
333
334
# File 'lib/notion_ruby_mapping/properties/property.rb', line 332

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:



340
341
342
# File 'lib/notion_ruby_mapping/properties/property.rb', line 340

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