Class: EgovUtils::Iszr::LegalPeople::Search

Inherits:
ActiveInteraction::Base
  • Object
show all
Defined in:
app/services/egov_utils/iszr/legal_people/search.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



9
10
11
12
13
14
15
16
# File 'app/services/egov_utils/iszr/legal_people/search.rb', line 9

def execute
  person = find_person_service.run(ico:)
  if person.valid?
    person.result
  else
    errors.merge!(person.errors)
  end
end