Sha256: cc5fa4b3c2bd7d630ba86eacdc7b595510df2ad8b0c0e7eaffdc177b8b5ad3e5

Contents?: true

Size: 418 Bytes

Versions: 20

Compression:

Stored size: 418 Bytes

Contents

require 'intercom/traits/api_resource'
require 'intercom/client_collection_proxy'

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

20 entries across 20 versions & 1 rubygems

Version Path
intercom-3.5.9 lib/intercom/extended_api_operations/segments.rb
intercom-3.5.8 lib/intercom/extended_api_operations/segments.rb
intercom-3.5.7 lib/intercom/extended_api_operations/segments.rb
intercom-3.5.6 lib/intercom/extended_api_operations/segments.rb
intercom-3.5.5 lib/intercom/extended_api_operations/segments.rb
intercom-3.5.4 lib/intercom/extended_api_operations/segments.rb
intercom-3.5.3 lib/intercom/extended_api_operations/segments.rb
intercom-3.5.2 lib/intercom/extended_api_operations/segments.rb
intercom-3.5.1 lib/intercom/extended_api_operations/segments.rb
intercom-3.4.0 lib/intercom/extended_api_operations/segments.rb
intercom-3.3.0 lib/intercom/extended_api_operations/segments.rb
intercom-3.2.0 lib/intercom/extended_api_operations/segments.rb
intercom-3.1.0 lib/intercom/extended_api_operations/segments.rb
intercom-3.0.6 lib/intercom/extended_api_operations/segments.rb
intercom-3.0.5 lib/intercom/extended_api_operations/segments.rb
intercom-3.0.4 lib/intercom/extended_api_operations/segments.rb
intercom-3.0.3 lib/intercom/extended_api_operations/segments.rb
intercom-3.0.2 lib/intercom/extended_api_operations/segments.rb
intercom-3.0.0 lib/intercom/extended_api_operations/segments.rb
intercom-3.0.0b1 lib/intercom/extended_api_operations/segments.rb