Sha256: 7ecc68a7c3b4cf934b3a80e00009f5a595b64ce79f2ec76cdc6d148945e1f438

Contents?: true

Size: 413 Bytes

Versions: 12

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

module LinkedinOrbit
  class Orbit
    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
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
linkedin_orbit-0.5.2 lib/linkedin_orbit/orbit.rb
linkedin_orbit-0.5.1 lib/linkedin_orbit/orbit.rb
linkedin_orbit-0.5.0 lib/linkedin_orbit/orbit.rb
linkedin_orbit-0.3.0 lib/linkedin_orbit/orbit.rb
linkedin_orbit-0.2.0 lib/linkedin_orbit/orbit.rb
linkedin_orbit-0.1.4 lib/linkedin_orbit/orbit.rb
linkedin_orbit-0.1.3 lib/linkedin_orbit/orbit.rb
linkedin_orbit-0.1.2 lib/linkedin_orbit/orbit.rb
linkedin_orbit-0.1.1 lib/linkedin_orbit/orbit.rb
linkedin_orbit-0.1.0 lib/linkedin_orbit/orbit.rb
linkedin_orbit-0.0.2 lib/linkedin_orbit/orbit.rb
linkedin_orbit-0.0.1 lib/linkedin_orbit/orbit.rb