app/services/test_economy_management/activate.rb
def perform_activation

      perform_qr_code_task unless test_economy_qr_code_uploaded?

      perform_registeration_in_mappy_task unless registered_in_mappy_server?

      return error_with_data(
          'tem_a_5',
          'something_went_wrong',
          GlobalConstant::ErrorAction.default,
          {
            error_responses: @error_responses
          }
      ) if @error_responses.any?

      success

    end
# perform activation
# 1. Generate & Upload QR code
# 2. Perform API Call to Demo Mappy Server to register this token
#
# * Author: Puneet
# * Date: 10/04/2019
# * Reviewed By: Sunil
#
# @return [Result::Base]
#
perform activation
1. Generate & Upload QR code
2. Perform API Call to Demo Mappy Server to register this token

Puneet
Date: 10/04/2019
Reviewed By: Sunil
perform activation 1 . Generate & Upload QR code 2 . Perform API Call to Demo Mappy Server to register this token Puneet Date : 10 / 04 / 2019 Reviewed By : Sunil
def perform_activation
      perform_qr_code_task unless test_economy_qr_code_uploaded?
      perform_registeration_in_mappy_task unless registered_in_mappy_server?
      return error_with_data(
          'tem_a_5',
          'something_went_wrong',
          GlobalConstant::ErrorAction.default,
          {
            error_responses: @error_responses
          }
      ) if @error_responses.any?
      success
    end
def perform_activation perform_qr_code_task unless test_economy_qr_code_uploaded? perform_registeration_in_mappy_task unless registered_in_mappy_server? return error_with_data ( 'tem_a_5' , 'something_went_wrong' , GlobalConstant :: ErrorAction . default , { error_responses : @error_responses } ) if @error_responses . any? success end
perform activation
1.
perform activation 1 .
None
Result::Base