-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
bourda_c
committed
Apr 8, 2024
1 parent
7baf026
commit de3f985
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
lib/kaze_client/request/requests/collections/items/linked_collections_request.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# frozen_string_literal: true | ||
|
||
module KazeClient | ||
|
||
module Collection | ||
|
||
module Item | ||
|
||
class LinkedCollectionsRequest < Utils::FinalRequest | ||
|
||
include Utils::AuthentifiedRequest | ||
|
||
# @author [email protected] | ||
# Fetch all items linked to a given item | ||
# @see KazeClient::Request | ||
# @see KazeClient::Utils::FinalRequest | ||
# @see KazeClient::Utils::AuthentifiedRequest | ||
# @since 0.4.0 | ||
def initialize(collection_id, collection_item_id) | ||
super(:get, "api/collections/#{collection_id}/items/#{collection_item_id}/linked_collections") | ||
end | ||
|
||
end | ||
|
||
end | ||
|
||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters