Sha256: b79bde15fd1723d1717239a1aab880b0d03a068c303b262ed8f537d74fe9e0f1

Contents?: true

Size: 553 Bytes

Versions: 10

Compression:

Stored size: 553 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 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
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
eco-helpers-2.4.9 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.4.8 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.4.7 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.4.6 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.4.5 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.4.4 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.4.3 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.4.2 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.3.3 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.3.2 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb