Sha256: 582ee080f955c562be0a8b8c060bd6996515c770e8be7396b493f91d2279359f

Contents?: true

Size: 436 Bytes

Versions: 8

Compression:

Stored size: 436 Bytes

Contents

# frozen_string_literal: true

require 'intercom/client_collection_proxy'
require 'intercom/utils'

module Intercom
  module ExtendedApiOperations
    module Tags
      def by_tag(id)
        collection_name = Utils.resource_class_to_collection_name(collection_class)
        ClientCollectionProxy.new(collection_name, collection_class, details: { url: "/#{collection_name}?tag_id=#{id}" }, client: @client)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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