Module: Intercom::ExtendedApiOperations::Segments
- Included in:
- Service::Company, Service::User
- Defined in:
- lib/intercom/extended_api_operations/segments.rb
Instance Method Summary collapse
Instance Method Details
#by_segment(id) ⇒ Object
7 8 9 10 |
# File 'lib/intercom/extended_api_operations/segments.rb', line 7 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 |