Sha256: b9e6ded691a6452d0027fec82407a2be810507dfe7486463ecbf6f81bfce0aa5

Contents?: true

Size: 614 Bytes

Versions: 14

Compression:

Stored size: 614 Bytes

Contents

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

        def identify(section = :person)
          if entry && section == :entry
            entry.to_s(:identify)
          else
            str_id = id ? "id: '#{id}'; " : ""
            "'#{name}' (#{str_id}ext_id: '#{external_id}'; email: '#{email}')"
          end
        end
      end
      Ecoportal::API::V1::Person.include PersonPatch
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
eco-helpers-2.6.3 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.6.2 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.6.1 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.6.0 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.5.10 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.5.9 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.5.8 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.5.7 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.5.6 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.5.5 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.5.4 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.5.3 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.5.2 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.5.1 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb