Class: LinkedinOrbit::Orbit
- Inherits:
-
Object
- Object
- LinkedinOrbit::Orbit
- Defined in:
- lib/linkedin_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 14 |
# 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 |