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
9 10 11 12 |
# File 'lib/intercom/extended_api_operations/segments.rb', line 9 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 |