Sha256: e3fbd2bca4f431f1b19cd8c7e4def8457a163907a33ad6fc1c228777dd478575
Contents?: true
Size: 772 Bytes
Versions: 3
Compression:
Stored size: 772 Bytes
Contents
module EgovUtils module Iszr module NaturalPeople class Search < ActiveInteraction::Base string :firstname string :lastname date :birth_date, converter: :parse string :birth_place, default: nil validates :firstname, :lastname, :birth_date, presence: true def execute natural_person = find_person_service.run(inputs) errors.merge!(natural_person.errors) unless natural_person.valid? natural_person.result end private def find_person_service if Rails.env.production? EgovUtils::Iszr::NaturalPeople::ProdSearch else EgovUtils::Iszr::NaturalPeople::DevSearch end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems