Sha256: f8c455428593901ffe149329a0df60f9cdc6bfc5975528d4bd84f1538c9a7b81

Contents?: true

Size: 531 Bytes

Versions: 10

Compression:

Stored size: 531 Bytes

Contents

# frozen_string_literal: true

module EgovUtils
  module Iszr
    module Addresses
      class FetchForLegalPerson < ActiveInteraction::Base
        string :remote_id

        def execute
          strategy_class.run!(remote_id:)
        end

        def strategy_class
          if Rails.env.production?
            EgovUtils::Iszr::Addresses::FetchForLegalPerson::FromRemoteReposiory
          else
            EgovUtils::Iszr::Addresses::FetchForLegalPerson::FromSampleData
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
egov_utils-1.5.0.alpha10 app/services/egov_utils/iszr/addresses/fetch_for_legal_person.rb
egov_utils-1.5.0.alpha9 app/services/egov_utils/iszr/addresses/fetch_for_legal_person.rb
egov_utils-1.5.0.alpha8 app/services/egov_utils/iszr/addresses/fetch_for_legal_person.rb
egov_utils-1.5.0.alpha7 app/services/egov_utils/iszr/addresses/fetch_for_legal_person.rb
egov_utils-1.5.0.alpha6 app/services/egov_utils/iszr/addresses/fetch_for_legal_person.rb
egov_utils-1.5.0.alpha5 app/services/egov_utils/iszr/addresses/fetch_for_legal_person.rb
egov_utils-1.5.0.alpha4 app/services/egov_utils/iszr/addresses/fetch_for_legal_person.rb
egov_utils-1.5.0.alpha3 app/services/egov_utils/iszr/addresses/fetch_for_legal_person.rb
egov_utils-1.5.0.alpha2 app/services/egov_utils/iszr/addresses/fetch_for_legal_person.rb
egov_utils-1.5.0.alpha1 app/services/egov_utils/iszr/addresses/fetch_for_legal_person.rb