lib/email/hook_creator/base.rb
# Validate receiver entity id and receiver entity kind
#
# * Author: Puneet
# * Date: 12/01/2018
# * Reviewed By:
#
# @return [Result::Base] returns an object of Result::Base class
#
Validate receiver entity id and receiver entity kind
Author: Puneet
Date: 12/01/2018
Reviewed By.
Validate receiver entity id and receiver entity kind Author : Puneet Date : 12 / 01 / 2018 Reviewed By .
def validate_receiver_entity
        if Util::CommonValidator.is_integer?(@receiver_entity_id) &&
          EmailServiceApiCallHook.receiver_entity_kinds[@receiver_entity_kind].present?
          success
        else
          validation_error(
              'e_hc_b_3',
              'invalid_api_params',
              [],
              GlobalConstant::ErrorAction.default
          )
        end
      end
def validate_receiver_entity if Util :: CommonValidator . is_integer? ( @receiver_entity_id ) && EmailServiceApiCallHook . receiver_entity_kinds [ @receiver_entity_kind ] . present? success else validation_error ( 'e_hc_b_3' , 'invalid_api_params' , [ ] , GlobalConstant :: ErrorAction . default ) end end
Validate receiver entity id and receiver entity kind
 Author: Puneet
 Date: 12/01/2018
 Reviewed By:
Validate receiver entity id and receiver entity kind Author : Puneet Date : 12 / 01 / 2018 Reviewed By :
returns an object of Result::Base class
returns an object of Result :: Base class
Result::Base