Sha256: 955e03da5b0fe4ec6471e3db65feaa947c62cde8211900480be5de9270a14809
Contents?: true
Size: 621 Bytes
Versions: 3
Compression:
Stored size: 621 Bytes
Contents
# frozen_string_literal: true module Playbook module PbPersonContact class PersonContact include Playbook::Props partial "pb_person_contact/person_contact" prop :contacts, type: Playbook::Props::HashArray, default: [] prop :first_name prop :last_name def wrong_contacts contacts.select { |contact| contact[:contact_type] == "wrong number" } end def valid_contacts contacts.reject { |contact| contact[:contact_type] == "wrong number" } end def classname generate_classname("pb_person_contact_kit") end end end end
Version data entries
3 entries across 3 versions & 1 rubygems