Sha256: 1e7c7adc134bbf00fbe935abc843bbfd5846b63a81b3048a20dcd7a93e26b75c

Contents?: true

Size: 404 Bytes

Versions: 33

Compression:

Stored size: 404 Bytes

Contents

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, finder_details: {url: "/#{collection_name}?segment_id=#{id}"}, client: @client)
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
intercom-3.9.5 lib/intercom/extended_api_operations/segments.rb
intercom-3.9.4 lib/intercom/extended_api_operations/segments.rb
intercom-3.9.3 lib/intercom/extended_api_operations/segments.rb
intercom-3.9.2 lib/intercom/extended_api_operations/segments.rb
intercom-3.9.0 lib/intercom/extended_api_operations/segments.rb
intercom-3.8.1 lib/intercom/extended_api_operations/segments.rb
intercom-3.8.0 lib/intercom/extended_api_operations/segments.rb
intercom-3.7.7 lib/intercom/extended_api_operations/segments.rb
intercom-3.7.6 lib/intercom/extended_api_operations/segments.rb
intercom-3.7.5 lib/intercom/extended_api_operations/segments.rb
intercom-3.7.4 lib/intercom/extended_api_operations/segments.rb
intercom-3.7.3 lib/intercom/extended_api_operations/segments.rb
intercom-3.7.2 lib/intercom/extended_api_operations/segments.rb
intercom-3.7.1 lib/intercom/extended_api_operations/segments.rb
intercom-3.7.0 lib/intercom/extended_api_operations/segments.rb
intercom-3.6.2 lib/intercom/extended_api_operations/segments.rb
intercom-3.6.1 lib/intercom/extended_api_operations/segments.rb
intercom-3.6.0 lib/intercom/extended_api_operations/segments.rb
intercom-3.5.26 lib/intercom/extended_api_operations/segments.rb
intercom-3.5.25 lib/intercom/extended_api_operations/segments.rb