Class: KazeClient::CreateCollectionItemRequest
- Inherits:
-
Utils::FinalRequest
- Object
- Request
- Utils::FinalRequest
- KazeClient::CreateCollectionItemRequest
- 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
Instance Attribute Summary
Attributes included from Utils::AuthentifiedRequest
Attributes inherited from Request
#body, #headers, #method, #query, #url
Instance Method Summary collapse
-
#initialize(collection_id, payload) ⇒ CreateCollectionItemRequest
constructor
A new instance of CreateCollectionItemRequest.
Methods included from Utils::AuthentifiedRequest
Methods inherited from Request
Constructor Details
#initialize(collection_id, payload) ⇒ CreateCollectionItemRequest
Returns a new instance of CreateCollectionItemRequest.
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 |