Sha256: bf049d2cc895e6f7511519e9734a251ecd44c0b2d2342f9ff2979f6d1440ec26

Contents?: true

Size: 496 Bytes

Versions: 5

Compression:

Stored size: 496 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::FindAddressByIco
          else
            EgovUtils::Iszr::Addresses::FetchForLegalPerson::FromSampleData
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
egov_utils-1.5.0.alpha15 app/services/egov_utils/iszr/addresses/fetch_for_legal_person.rb
egov_utils-1.5.0.alpha14 app/services/egov_utils/iszr/addresses/fetch_for_legal_person.rb
egov_utils-1.5.0.alpha13 app/services/egov_utils/iszr/addresses/fetch_for_legal_person.rb
egov_utils-1.5.0.alpha12 app/services/egov_utils/iszr/addresses/fetch_for_legal_person.rb
egov_utils-1.5.0.alpha11 app/services/egov_utils/iszr/addresses/fetch_for_legal_person.rb