Sha256: 1a7d576717bdf29f7fff8feff9ac2e8430c7061de5ad4cd2b27f3da9bf237870
Contents?: true
Size: 445 Bytes
Versions: 26
Compression:
Stored size: 445 Bytes
Contents
module Ecoportal module API class V1 class PersonDetails # Checks if an `id` or `alt_id` exists # @param id [String] the `id` or the `alt_id` of the target field. # @return [Boolean] `true` if it exists, `false` otherwise def key?(id) @fields_by_id or index_fields @fields_by_id.key?(id) || @fields_by_alt_id.key?(id) end end end end end
Version data entries
26 entries across 26 versions & 1 rubygems