Sha256: 3788335f06b76c9d80b4f8b52cd109876065a66b56553b3b391654e5d0e7f759

Contents?: true

Size: 537 Bytes

Versions: 3

Compression:

Stored size: 537 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::Addresses::FetchForNaturalPerson::FromRemoteReposiory
          else
            EgovUtils::Iszr::Addresses::FetchForNaturalPerson::FromSampleData
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
egov_utils-1.5.0.alpha3 app/services/egov_utils/iszr/addresses/fetch_for_natural_person.rb
egov_utils-1.5.0.alpha2 app/services/egov_utils/iszr/addresses/fetch_for_natural_person.rb
egov_utils-1.5.0.alpha1 app/services/egov_utils/iszr/addresses/fetch_for_natural_person.rb