Class: MeetupOrbit::Orbit

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

Class Method Summary collapse

Class Method Details

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



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

def self.call(type:, data:, orbit_workspace:, orbit_api_key:)
  if type == "event_rsvp"
    MeetupOrbit::Interactions::Events::Rsvp.new(
      rsvp: data[:rsvp],
      orbit_workspace: orbit_workspace,
      orbit_api_key: orbit_api_key
    )
  end
end