Class: NotionOrbit::Orbit

Inherits:
Object
  • Object
show all
Defined in:
lib/notion_orbit/orbit.rb

Class Method Summary collapse

Class Method Details

.call(type:, data:, orbit_workspace:, orbit_api_key:, notion_api_key:) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'lib/notion_orbit/orbit.rb', line 5

def self.call(type:, data:, orbit_workspace:, orbit_api_key:, notion_api_key:)
    if type == "note"
        NotionOrbit::Interactions::Note.new(
            note: data[:note],
            orbit_workspace: orbit_workspace,
            orbit_api_key: orbit_api_key,
            notion_api_key: notion_api_key
        )
    end
end