Class: KazeClient::CreateCollectionItemRequest

Inherits:
Utils::FinalRequest show all
Includes:
Utils::AuthentifiedRequest
Defined in:
lib/kaze_client/request/requests/collections/items/create_collection_item_request.rb

Overview

Create a collection item

Constant Summary

Constants inherited from Request

Request::DEFAULT_HEADERS

Instance Attribute Summary

Attributes included from Utils::AuthentifiedRequest

#token

Attributes inherited from Request

#body, #headers, #method, #query, #url

Instance Method Summary collapse

Methods included from Utils::AuthentifiedRequest

#with_token

Methods inherited from Request

#error_for, #parameters

Constructor Details

#initialize(collection_id, payload) ⇒ CreateCollectionItemRequest

Returns a new instance of CreateCollectionItemRequest.

Parameters:

Since:

  • 0.3.2



17
18
19
20
21
# File 'lib/kaze_client/request/requests/collections/items/create_collection_item_request.rb', line 17

def initialize(collection_id, payload)
  super(:post, "api/collections/#{collection_id}/items")

  @body = payload
end