Class: HubSpotSDK::Resources::Crm::Timeline::Batch
- Inherits:
-
Object
- Object
- HubSpotSDK::Resources::Crm::Timeline::Batch
- Defined in:
- lib/hubspot_sdk/resources/crm/timeline/batch.rb
Instance Method Summary collapse
- #create(inputs:, request_options: {}) ⇒ HubSpotSDK::Models::Crm::BatchResponseAppEventOccurrence
-
#initialize(client:) ⇒ Batch
constructor
private
A new instance of Batch.
Constructor Details
#initialize(client:) ⇒ Batch
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Batch.
30 31 32 |
# File 'lib/hubspot_sdk/resources/crm/timeline/batch.rb', line 30 def initialize(client:) @client = client end |
Instance Method Details
#create(inputs:, request_options: {}) ⇒ HubSpotSDK::Models::Crm::BatchResponseAppEventOccurrence
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/hubspot_sdk/resources/crm/timeline/batch.rb', line 16 def create(params) parsed, = HubSpotSDK::Crm::Timeline::BatchCreateParams.dump_request(params) @client.request( method: :post, path: "integrators/timeline/2026-03/events/batch", body: parsed, model: HubSpotSDK::Crm::BatchResponseAppEventOccurrence, options: ) end |