Sha256: ea1ab6bf910e3a9fa2515e8621eb7734abdca170c72b748da06eb4962ce73e1a

Contents?: true

Size: 525 Bytes

Versions: 1

Compression:

Stored size: 525 Bytes

Contents

# coding: utf-8
# frozen_string_literal: true

module Stealth
  module Services
    module Facebook

      class MessagingReferralEvent

        attr_reader :service_message, :params

        def initialize(service_message:, params:)
          @service_message = service_message
          @params = params
        end

        def process
          fetch_referral
        end

        private

          def fetch_referral
            service_message.referral = params['referral']
          end

      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stealth-facebook-0.22.0 lib/stealth/services/facebook/events/messaging_referral_event.rb