Sha256: dbc057c6cf75ebb60e11afe2289302452c37b2efae1ae4a546a23e5d15d0a34c

Contents?: true

Size: 498 Bytes

Versions: 3

Compression:

Stored size: 498 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 fetch_result
          if Rails.env.production?
            EgovUtils::Iszr::FindResultByAifo
          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.alpha6 app/services/egov_utils/iszr/addresses/fetch_for_natural_person.rb
egov_utils-1.5.0.alpha5 app/services/egov_utils/iszr/addresses/fetch_for_natural_person.rb
egov_utils-1.5.0.alpha4 app/services/egov_utils/iszr/addresses/fetch_for_natural_person.rb