Class: EgovUtils::Iszr::LegalPeople::DevSearch
- Inherits:
 - 
      ActiveInteraction::Base
      
        
- Object
 - ActiveInteraction::Base
 - EgovUtils::Iszr::LegalPeople::DevSearch
 
 
- Defined in:
 - app/services/egov_utils/iszr/legal_people/dev_search.rb
 
Constant Summary collapse
- MAPPING_CLASS =
 EgovUtils::Services::Iszr::LegalPeople
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
      11 12 13 14 15 16 17 18 19  | 
    
      # File 'app/services/egov_utils/iszr/legal_people/dev_search.rb', line 11 def execute legal_person = initialize_person.detect { |person| person.ico == ico } if legal_person.nil? errors.add(:base, I18n.t('errors.messages.legal_person.not_found')) else legal_person end end  |