Sha256: 4e3068c60cfe8ba04382615eebf0a37b181321fba0f3d9fa1b05f16ab49ab2c8

Contents?: true

Size: 555 Bytes

Versions: 55

Compression:

Stored size: 555 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

55 entries across 55 versions & 1 rubygems

Version Path
eco-helpers-2.1.12 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.1.11 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.1.10 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.1.9 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.1.8 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.1.7 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.1.6 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.1.5 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.1.4 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.1.3 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.1.2 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.1.1 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.0.68 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.0.67 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.0.66 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.0.65 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.0.64 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.0.63 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.0.62 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-2.0.61 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb