Class: EgovUtils::Iszr::Addresses::FetchForNaturalPerson

Inherits:
ActiveInteraction::Base
  • Object
show all
Defined in:
app/services/egov_utils/iszr/addresses/fetch_for_natural_person.rb,
app/services/egov_utils/iszr/addresses/fetch_for_natural_person/from_sample_data.rb

Defined Under Namespace

Classes: FromSampleData

Instance Method Summary collapse

Instance Method Details

#executeObject



9
10
11
# File 'app/services/egov_utils/iszr/addresses/fetch_for_natural_person.rb', line 9

def execute
  strategy_class.run!(remote_id:)
end

#strategy_classObject



13
14
15
16
17
18
19
# File 'app/services/egov_utils/iszr/addresses/fetch_for_natural_person.rb', line 13

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