Sha256: bbf99fbb046b2804938577bc42313bafb26df7af08cd84bb8824d4c89095934d

Contents?: true

Size: 484 Bytes

Versions: 13

Compression:

Stored size: 484 Bytes

Contents

module Ecoportal
  module API
    class V1
      # @attr entry [Eco::API::Common::People::PersonEntry, Hash] the input entry plain hash data used to update/create this person.
      class Person
        attr_accessor :entry

        def reset_details!
          doc["details"] = JSON.parse(original_doc["details"])
        end

        def consolidate_details!
          original_doc["details"] = JSON.parse(doc["details"])
        end

      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
eco-helpers-1.5.14 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-1.5.13 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-1.5.12 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-1.5.11 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-1.5.10 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-1.5.9 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-1.5.8 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-1.5.7 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-1.5.6 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-1.5.5 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-1.5.4 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-1.5.3 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-1.5.2 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb