Class: CustomerioAPI::CustomerioObjectResource
- Defined in:
- lib/customerio_api/resources/customerio_object_resource.rb
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#where(attributes:, start: nil, limit: nil) ⇒ Object
Response: #<CustomerioAPI::CustomerioObject identifiers=[#<OpenStruct cio_object_id=“obd7a90a0102”, object_id=“PostCo”>], ids=, next=“”>.
Methods inherited from Resource
#get_request, #handle_response, #initialize, #post_request, #put_request
Constructor Details
This class inherits a constructor from CustomerioAPI::Resource
Instance Method Details
#where(attributes:, start: nil, limit: nil) ⇒ Object
Response: #<CustomerioAPI::CustomerioObject identifiers=[#<OpenStruct cio_object_id=“obd7a90a0102”, object_id=“PostCo”>], ids=, next=“”>
25 26 27 28 |
# File 'lib/customerio_api/resources/customerio_object_resource.rb', line 25 def where(attributes:, start: nil, limit: nil) response_body = post_request("objects?start=#{start}&limit=#{limit}", body: attributes).body CustomerioObject.new(response_body) end |