Sha256: 22716d24909787f598b40edb653804050fad26ed15653dc45ba771115efbd188
Contents?: true
Size: 526 Bytes
Versions: 32
Compression:
Stored size: 526 Bytes
Contents
module Ecoportal module API class Internal class Person def new?(doc = :initial) ref_doc = (doc == :original) ? original_doc : initial_doc !ref_doc["details"] && !ref_doc["account"] end # @return [Boolean] if the account has been added, compared to `doc` def account_added?(doc = :initial) ref_doc = (doc == :original) ? original_doc : initial_doc account && !ref_doc["account"] end end end end end
Version data entries
32 entries across 32 versions & 1 rubygems