Sha256: c14f8a106bbac55286602b37da2cfad6efe9794d4be5918d843e6a5d4617247b

Contents?: true

Size: 501 Bytes

Versions: 10

Compression:

Stored size: 501 Bytes

Contents

# frozen_string_literal: true

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

        def execute
          strategy_class.run!(remote_id:)
        end

        def strategy_class
          if Rails.env.production?
            EgovUtils::Iszr::FindAddressByAifo
          else
            EgovUtils::Iszr::Addresses::FetchForNaturalPerson::FromSampleData
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
egov_utils-1.5.0.alpha16 app/services/egov_utils/iszr/addresses/fetch_for_natural_person.rb
egov_utils-1.5.0.alpha15 app/services/egov_utils/iszr/addresses/fetch_for_natural_person.rb
egov_utils-1.5.0.alpha14 app/services/egov_utils/iszr/addresses/fetch_for_natural_person.rb
egov_utils-1.5.0.alpha13 app/services/egov_utils/iszr/addresses/fetch_for_natural_person.rb
egov_utils-1.5.0.alpha12 app/services/egov_utils/iszr/addresses/fetch_for_natural_person.rb
egov_utils-1.5.0.alpha11 app/services/egov_utils/iszr/addresses/fetch_for_natural_person.rb
egov_utils-1.5.0.alpha10 app/services/egov_utils/iszr/addresses/fetch_for_natural_person.rb
egov_utils-1.5.0.alpha9 app/services/egov_utils/iszr/addresses/fetch_for_natural_person.rb
egov_utils-1.5.0.alpha8 app/services/egov_utils/iszr/addresses/fetch_for_natural_person.rb
egov_utils-1.5.0.alpha7 app/services/egov_utils/iszr/addresses/fetch_for_natural_person.rb