Sha256: 0e8946ce77b67e5d3b4e6b59f42394c7951c8a6b18f277678ee546746a0e2c6e

Contents?: true

Size: 510 Bytes

Versions: 31

Compression:

Stored size: 510 Bytes

Contents

module Ecoportal
  module API
    class Internal
      class Person

        def reset_account!
          doc["account"] = JSON.parse(original_doc["account"])
        end

        def consolidate_account!
          original_doc["account"] = JSON.parse(doc["account"])
        end

        def new?
          !initial_doc["details"] && !initial_doc["account"]
        end

        def account_added?
          account && !initial_doc["account"]
        end

      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
eco-helpers-2.0.18 lib/eco/api/common/version_patches/ecoportal_api/internal_person.rb
eco-helpers-2.0.17 lib/eco/api/common/version_patches/ecoportal_api/internal_person.rb
eco-helpers-2.0.16 lib/eco/api/common/version_patches/ecoportal_api/internal_person.rb
eco-helpers-2.0.15 lib/eco/api/common/version_patches/ecoportal_api/internal_person.rb
eco-helpers-2.0.14 lib/eco/api/common/version_patches/ecoportal_api/internal_person.rb
eco-helpers-2.0.13 lib/eco/api/common/version_patches/ecoportal_api/internal_person.rb
eco-helpers-2.0.12 lib/eco/api/common/version_patches/ecoportal_api/internal_person.rb
eco-helpers-2.0.11 lib/eco/api/common/version_patches/ecoportal_api/internal_person.rb
eco-helpers-2.0.10 lib/eco/api/common/version_patches/ecoportal_api/internal_person.rb
eco-helpers-2.0.9 lib/eco/api/common/version_patches/ecoportal_api/internal_person.rb
eco-helpers-2.0.8 lib/eco/api/common/version_patches/ecoportal_api/internal_person.rb
eco-helpers-2.0.7 lib/eco/api/common/version_patches/ecoportal_api/internal_person.rb
eco-helpers-2.0.6 lib/eco/api/common/version_patches/ecoportal_api/internal_person.rb
eco-helpers-2.0.5 lib/eco/api/common/version_patches/ecoportal_api/internal_person.rb
eco-helpers-2.0.4 lib/eco/api/common/version_patches/ecoportal_api/internal_person.rb
eco-helpers-2.0.3 lib/eco/api/common/version_patches/ecoportal_api/internal_person.rb
eco-helpers-2.0.2 lib/eco/api/common/version_patches/ecoportal_api/internal_person.rb
eco-helpers-1.5.15 lib/eco/api/common/version_patches/ecoportal_api/internal_person.rb
eco-helpers-1.5.14 lib/eco/api/common/version_patches/ecoportal_api/internal_person.rb
eco-helpers-1.5.13 lib/eco/api/common/version_patches/ecoportal_api/internal_person.rb