Class: NotionRubyMapping::DateBaseProperty
- Includes:
- IsEmptyIsNotEmpty
- Defined in:
- lib/notion_ruby_mapping/properties/date_base_property.rb
Overview
Date base property (date, created_time, last_edited_time, formula)
Direct Known Subclasses
CreatedTimeProperty, DateProperty, FormulaProperty, LastEditedTimeProperty, RollupProperty
Instance Attribute Summary
Attributes inherited from Property
Instance Method Summary collapse
-
#filter_after(date, rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query
Generated Query object.
-
#filter_before(date, rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query
Generated Query object.
-
#filter_does_not_equal(date, rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query
Generated Query object.
-
#filter_equals(date, rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query
Generated Query object.
-
#filter_next_month(rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query
Generated Query object.
-
#filter_next_week(rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query
Generated Query object.
-
#filter_next_year(rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query
Generated Query object.
-
#filter_on_or_after(date, rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query
Generated Query object.
-
#filter_on_or_before(date, rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query
Generated Query object.
-
#filter_past_month(rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query
Generated Query object.
-
#filter_past_week(rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query
Generated Query object.
-
#filter_past_year(rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query
Generated Query object.
Methods included from IsEmptyIsNotEmpty
#filter_is_empty, #filter_is_not_empty
Methods inherited from Property
#assert_database_property, #assert_page_property, #clear_will_update, create_from_json, #database?, #initialize, #make_filter_query, #new_name=, #page?, #property_schema_json, #property_values_json, #remove, #type, #update_from_json, #update_property_schema_json
Constructor Details
This class inherits a constructor from NotionRubyMapping::Property
Instance Method Details
#filter_after(date, rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query
Returns generated Query object.
37 38 39 |
# File 'lib/notion_ruby_mapping/properties/date_base_property.rb', line 37 def filter_after(date, rollup = nil, rollup_type = nil) make_filter_query "after", value_str(date), rollup, rollup_type end |
#filter_before(date, rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query
Returns generated Query object.
29 30 31 |
# File 'lib/notion_ruby_mapping/properties/date_base_property.rb', line 29 def filter_before(date, rollup = nil, rollup_type = nil) make_filter_query "before", value_str(date), rollup, rollup_type end |
#filter_does_not_equal(date, rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query
21 22 23 |
# File 'lib/notion_ruby_mapping/properties/date_base_property.rb', line 21 def filter_does_not_equal(date, rollup = nil, rollup_type = nil) make_filter_query "does_not_equal", value_str(date), rollup, rollup_type end |
#filter_equals(date, rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query
Returns generated Query object.
14 15 16 |
# File 'lib/notion_ruby_mapping/properties/date_base_property.rb', line 14 def filter_equals(date, rollup = nil, rollup_type = nil) make_filter_query "equals", value_str(date), rollup, rollup_type end |
#filter_next_month(rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query
Returns generated Query object.
93 94 95 |
# File 'lib/notion_ruby_mapping/properties/date_base_property.rb', line 93 def filter_next_month(rollup = nil, rollup_type = nil) make_filter_query "next_month", {}, rollup, rollup_type end |
#filter_next_week(rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query
Returns generated Query object.
85 86 87 |
# File 'lib/notion_ruby_mapping/properties/date_base_property.rb', line 85 def filter_next_week(rollup = nil, rollup_type = nil) make_filter_query "next_week", {}, rollup, rollup_type end |
#filter_next_year(rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query
Returns generated Query object.
101 102 103 |
# File 'lib/notion_ruby_mapping/properties/date_base_property.rb', line 101 def filter_next_year(rollup = nil, rollup_type = nil) make_filter_query "next_year", {}, rollup, rollup_type end |
#filter_on_or_after(date, rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query
Returns generated Query object.
53 54 55 |
# File 'lib/notion_ruby_mapping/properties/date_base_property.rb', line 53 def filter_on_or_after(date, rollup = nil, rollup_type = nil) make_filter_query "on_or_after", value_str(date), rollup, rollup_type end |
#filter_on_or_before(date, rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query
Returns generated Query object.
45 46 47 |
# File 'lib/notion_ruby_mapping/properties/date_base_property.rb', line 45 def filter_on_or_before(date, rollup = nil, rollup_type = nil) make_filter_query "on_or_before", value_str(date), rollup, rollup_type end |
#filter_past_month(rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query
Returns generated Query object.
69 70 71 |
# File 'lib/notion_ruby_mapping/properties/date_base_property.rb', line 69 def filter_past_month(rollup = nil, rollup_type = nil) make_filter_query "past_month", {}, rollup, rollup_type end |
#filter_past_week(rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query
Returns generated Query object.
61 62 63 |
# File 'lib/notion_ruby_mapping/properties/date_base_property.rb', line 61 def filter_past_week(rollup = nil, rollup_type = nil) make_filter_query "past_week", {}, rollup, rollup_type end |
#filter_past_year(rollup = nil, rollup_type = nil) ⇒ NotionRubyMapping::Query
Returns generated Query object.
77 78 79 |
# File 'lib/notion_ruby_mapping/properties/date_base_property.rb', line 77 def filter_past_year(rollup = nil, rollup_type = nil) make_filter_query "past_year", {}, rollup, rollup_type end |