class NotionOrbit::Orbit
Public Class Methods
call(type:, data:, orbit_workspace:, orbit_api_key:, notion_api_key:)
click to toggle source
# 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