Sha256: 2c52acb1d42036811f194612a503bdc2e0dace78fa3930f38cd2a83510d089c2

Contents?: true

Size: 448 Bytes

Versions: 8

Compression:

Stored size: 448 Bytes

Contents

# frozen_string_literal: true

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

module Intercom
  module ExtendedApiOperations
    module Segments
      def by_segment(id)
        collection_name = Utils.resource_class_to_collection_name(collection_class)
        ClientCollectionProxy.new(collection_name, collection_class, details: { url: "/#{collection_name}?segment_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/segments.rb
intercom-4.2.0 lib/intercom/extended_api_operations/segments.rb
intercom-4.1.3 lib/intercom/extended_api_operations/segments.rb
intercom-4.1.2 lib/intercom/extended_api_operations/segments.rb
intercom-4.1.1 lib/intercom/extended_api_operations/segments.rb
intercom-4.1.0 lib/intercom/extended_api_operations/segments.rb
intercom-4.0.1 lib/intercom/extended_api_operations/segments.rb
intercom-4.0.0 lib/intercom/extended_api_operations/segments.rb