-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support setting the region of your DB. Added Update / Delete More Ite…
…ms endpoints. Breaking changes: RecombeeClient.initialize: protocol parameter (HTTP/HTTPS) moved to options hash. Removed deprecated endpoints Item Based Recommendation and User Based Recommendation.
- Loading branch information
1 parent
31255d7
commit 12b77c9
Showing
21 changed files
with
224 additions
and
377 deletions.
There are no files selected for viewing
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
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
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
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,52 @@ | ||
# | ||
# This file is auto-generated, do not edit | ||
# | ||
|
||
module RecombeeApiClient | ||
require_relative 'request' | ||
require_relative '../errors' | ||
|
||
## | ||
#Delete all the items that pass the filter. | ||
# | ||
#If an item becomes obsolete/no longer available, it is meaningful to **keep it in the catalog** (along with all the interaction data, which are very useful), and **only exclude the item from recommendations**. In such a case, use [ReQL filter](https://docs.recombee.com/reql.html) instead of deleting the item completely. | ||
class DeleteMoreItems < ApiRequest | ||
attr_reader :filter | ||
attr_accessor :timeout | ||
attr_accessor :ensure_https | ||
|
||
## | ||
# * *Required arguments* | ||
# - +filter+ -> A [ReQL](https://docs.recombee.com/reql.html) expression, which return `true` for the items that shall be updated. | ||
# | ||
def initialize(filter) | ||
@filter = filter | ||
@timeout = 1000 | ||
@ensure_https = false | ||
end | ||
|
||
# HTTP method | ||
def method | ||
:delete | ||
end | ||
|
||
# Values of body parameters as a Hash | ||
def body_parameters | ||
p = Hash.new | ||
p['filter'] = @filter | ||
p | ||
end | ||
|
||
# Values of query parameters as a Hash. | ||
# name of parameter => value of the parameter | ||
def query_parameters | ||
params = {} | ||
params | ||
end | ||
|
||
# Relative path to the endpoint | ||
def path | ||
"/{databaseId}/more-items/" | ||
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
159 changes: 0 additions & 159 deletions
159
lib/recombee_api_client/api/item_based_recommendation.rb
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.