Sha256: a421c0359cad1442086b367d1ff1f0a3a950e00331ccc75e17da35c8f2afdb0a

Contents?: true

Size: 722 Bytes

Versions: 4

Compression:

Stored size: 722 Bytes

Contents

# frozen_string_literal: true

require 'intercom/traits/incrementable_attributes'
require 'intercom/traits/api_resource'
require 'intercom/api_operations/nested_resource'

module Intercom
  class Contact
    include Traits::IncrementableAttributes
    include Traits::ApiResource
    include ApiOperations::NestedResource

    nested_resource_methods :tag, operations: %i[add delete list]
    nested_resource_methods :note, operations: %i[create list]
    nested_resource_methods :company, operations: %i[add delete list]

    def self.collection_proxy_class
      Intercom::BaseCollectionProxy
    end

    def identity_vars
      [:id]
    end

    def flat_store_attributes
      [:custom_attributes]
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
intercom-4.1.1 lib/intercom/contact.rb
intercom-4.1.0 lib/intercom/contact.rb
intercom-4.0.1 lib/intercom/contact.rb
intercom-4.0.0 lib/intercom/contact.rb