Class: Fetcher::Notion::BirthdayNextWeek
- Defined in:
- lib/bas/fetcher/notion/use_case/birthday_next_week.rb
Overview
This class is an implementation of the Fetcher::Notion::Base interface, specifically designed for fetching next week birthdays data from Notion.
Constant Summary collapse
- DAYS_BEFORE_NOTIFY =
8
Constants inherited from Base
Fetcher::Notion::Base::NOTION_BASE_URL
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#fetch ⇒ Object
Implements the data fetching filter for next week Birthdays data from Notion.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Fetcher::Base
Instance Method Details
#fetch ⇒ Object
Implements the data fetching filter for next week Birthdays data from Notion.
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/bas/fetcher/notion/use_case/birthday_next_week.rb', line 16 def fetch filter = { filter: { or: [ { property: "BD_this_year", date: { equals: eight_days_from_now } } ] } } execute(filter) end |