Class: KazeClient::Collection::Item::CreateLinkRequest
- Inherits:
-
Utils::FinalRequest
- Object
- Request
- Utils::FinalRequest
- KazeClient::Collection::Item::CreateLinkRequest
- Includes:
- Utils::AuthentifiedRequest
- Defined in:
- lib/kaze_client/request/requests/collections/items/create_link_request.rb
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, collection_item_id, linked_collection_item_id) ⇒ CreateLinkRequest
constructor
Create a link between 2 collection items.
Methods included from Utils::AuthentifiedRequest
Methods inherited from Request
Constructor Details
#initialize(collection_id, collection_item_id, linked_collection_item_id) ⇒ CreateLinkRequest
Create a link between 2 collection items
19 20 21 22 23 |
# File 'lib/kaze_client/request/requests/collections/items/create_link_request.rb', line 19 def initialize(collection_id, collection_item_id, linked_collection_item_id) super(:post, "api/collections/#{collection_id}/items/#{collection_item_id}/links") @body = { id: linked_collection_item_id } end |