Sha256: 75ee7868cfb583281e7e555b1995cc92bd10c88c12020ee08de831de1ae0529a
Contents?: true
Size: 798 Bytes
Versions: 4
Compression:
Stored size: 798 Bytes
Contents
# frozen_string_literal: true module CustomerioAPI class ObjectRelationshipResource < Resource # query_params = {start: string, limit: integer, id_type: "object_id" | "cio_object_id"} # client.object_relationship.where(object_type_id: 1, object_id: 'PostCo', query_params: query_params) # Response: # #<CustomerioAPI::ObjectRelationship cio_relationships=[#<OpenStruct object_type_id="0", identifiers=#<OpenStruct cio_id="d7a90a000102", email="andy@postco.io", id="test1">, attributes=#<OpenStruct>, timestamps=#<OpenStruct>>], next=""> def where(object_type_id:, object_id:, query_params: {}) response_body = get_request("objects/#{object_type_id}/#{object_id}/relationships", params: query_params).body ObjectRelationship.new(response_body) end end end
Version data entries
4 entries across 4 versions & 1 rubygems