Sha256: 0b50b051625badb3ab5a95f97836f1e3ebca36fc5f73ddaad0627a7db143b748

Contents?: true

Size: 365 Bytes

Versions: 2

Compression:

Stored size: 365 Bytes

Contents

require 'intercom/traits/api_resource'

module Intercom
  module ApiOperations
    module Convert
      def convert(user)
        from_response(
          Intercom.post(
            "/contacts/convert",
            {
              contact: { user_id: user_id },
              user: user.identity_hash
            }
          )
        )
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
cogniteev-intercom-2.5.4 lib/intercom/api_operations/convert.rb
intercom-2.5.4 lib/intercom/api_operations/convert.rb