class LinkedinOrbit::Orbit
Public Class Methods
call(type:, data:, orbit_workspace:, orbit_api_key:)
click to toggle source
# File lib/linkedin_orbit/orbit.rb, line 5 def self.call(type:, data:, orbit_workspace:, orbit_api_key:) if type == "comments" LinkedinOrbit::Interactions::Comment.new( title: data[:title].gsub("\n", " "), comment: data[:comment], orbit_workspace: orbit_workspace, orbit_api_key: orbit_api_key ) end end