Class: PlanningcenterOrbit::Orbit

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

Class Method Summary collapse

Class Method Details

.call(type:, data:, workspace_id:, api_key:) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/planningcenter_orbit/orbit.rb', line 6

def self.call(type:, data:, workspace_id:, api_key:)
  if type == "checkin"
    PlanningcenterOrbit::Interactions::Checkin.new(
      event_title: data[:title],
      checkin: data[:checkin],
      url: data[:url],
      workspace_id: workspace_id,
      api_key: api_key
    )
  end
end