Module: Knock::BulkOperations

Extended by:
Base, Client
Defined in:
lib/knock/bulk_operations.rb

Overview

Provides convienience methods for working with bulk operations

Instance Attribute Summary

Attributes included from Base

#key

Class Method Summary collapse

Methods included from Client

client, delete_request, execute_request, get_request, handle_error_response, post_request, put_request, user_agent

Class Method Details

.get(id:) ⇒ Hash

Retrieves the given bulk operation

Parameters:

  • id (String)

    The bulk operation ID

Returns:

  • (Hash)

    The bulk operation



16
17
18
19
20
21
22
23
# File 'lib/knock/bulk_operations.rb', line 16

def get(id:)
  request = get_request(
    auth: true,
    path: "/v1/bulk_operations/#{id}"
  )

  execute_request(request: request)
end