Sha256: ded04fee7c709ec2c3d42eb127cea3dcbb6717fb264874344f8782eb01487a22

Contents?: true

Size: 588 Bytes

Versions: 8

Compression:

Stored size: 588 Bytes

Contents

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

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

    nested_resource_methods :contact, operations: %i[list]

    def self.collection_proxy_class
      Intercom::ClientCollectionProxy
    end

    def identity_vars ; [:id, :company_id] ; end
    def flat_store_attributes ; [:custom_attributes] ; end
    def update_verb ; 'post' ; end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
intercom-4.2.1 lib/intercom/company.rb
intercom-4.2.0 lib/intercom/company.rb
intercom-4.1.3 lib/intercom/company.rb
intercom-4.1.2 lib/intercom/company.rb
intercom-4.1.1 lib/intercom/company.rb
intercom-4.1.0 lib/intercom/company.rb
intercom-4.0.1 lib/intercom/company.rb
intercom-4.0.0 lib/intercom/company.rb