Class: EgovUtils::Iszr::Addresses::FetchForLegalPerson

Inherits:
ActiveInteraction::Base
  • Object
show all
Defined in:
app/services/egov_utils/iszr/addresses/fetch_for_legal_person.rb,
app/services/egov_utils/iszr/addresses/fetch_for_legal_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_legal_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_legal_person.rb', line 13

def strategy_class
  if Rails.env.production?
    EgovUtils::Iszr::Addresses::FetchForLegalPerson::FromRemoteReposiory
  else
    EgovUtils::Iszr::Addresses::FetchForLegalPerson::FromSampleData
  end
end