lib/email/hook_processor/base.rb
# builds params which go into API call to Email Service
#
# * Author: Puneet
# * Date: 12/01/2018
# * Reviewed By:
#
# @return [Array]
#
builds params which go into API call to Email Service
Author: Puneet
Date: 12/01/2018
Reviewed By.
builds params which go into API call to Email Service Author : Puneet Date : 12 / 01 / 2018 Reviewed By .
def add_update_contact_params
        arr = []
        if @hook.params["add_ost_master_list"]
          arr = [GlobalConstant::PepoCampaigns.ost_master_list_id]
        else
          arr = [GlobalConstant::PepoCampaigns.platform_users_list_id]
        end
        arr << @email
        arr << attributes_hash
        arr << user_settings_hash
        arr
      end
def add_update_contact_params arr = [ ] if @hook . params [ "add_ost_master_list" ] arr = [ GlobalConstant :: PepoCampaigns . ost_master_list_id ] else arr = [ GlobalConstant :: PepoCampaigns . platform_users_list_id ] end arr << @email arr << attributes_hash arr << user_settings_hash arr end
builds params which go into API call to Email Service
 Author: Puneet
 Date: 12/01/2018
 Reviewed By:
builds params which go into API call to Email Service Author : Puneet Date : 12 / 01 / 2018 Reviewed By :
None
Array