Sha256: a5071b721edfb01060a6abf4e149809beb5f02f0544e9a20e91e0b6939a6ef7c
Contents?: true
Size: 623 Bytes
Versions: 9
Compression:
Stored size: 623 Bytes
Contents
module EgovUtils module Iszr module LegalPeople class Search < ActiveInteraction::Base string :ico validates :ico, presence: true def execute person = find_person_service.run(ico:) if person.valid? person.result else errors.merge!(person.errors) end end private def find_person_service if Rails.env.production? EgovUtils::Iszr::LegalPeople::ProdSearch else EgovUtils::Iszr::LegalPeople::DevSearch end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems