class RecombeeApiClient::UpdateAutoReqlSegmentation
Update an existing Segmentation.
Attributes
description[R]
ensure_https[RW]
expression[R]
segmentation_id[R]
timeout[RW]
title[R]
Public Class Methods
new(segmentation_id, optional = {})
click to toggle source
-
*Required arguments*
-
segmentation_id
-> ID of the updated Segmentation
-
-
*Optional arguments (given as hash optional)*
-
expression
-> ReQL expression that returns for each item a set with IDs of segments to which the item belongs -
title
-> Human-readable name that is shown in the Recombee Admin UI. -
description
-> Description that is shown in the Recombee Admin UI.
-
# File lib/recombee_api_client/api/update_auto_reql_segmentation.rb, line 29 def initialize(segmentation_id, optional = {}) @segmentation_id = segmentation_id optional = normalize_optional(optional) @expression = optional['expression'] @title = optional['title'] @description = optional['description'] @optional = optional @timeout = 10000 @ensure_https = false @optional.each do |par, _| fail UnknownOptionalParameter.new(par) unless ["expression","title","description"].include? par end end
Public Instance Methods
body_parameters()
click to toggle source
Values of body parameters as a Hash
# File lib/recombee_api_client/api/update_auto_reql_segmentation.rb, line 49 def body_parameters p = Hash.new p['expression'] = @optional['expression'] if @optional.include? 'expression' p['title'] = @optional['title'] if @optional.include? 'title' p['description'] = @optional['description'] if @optional.include? 'description' p end
method()
click to toggle source
HTTP method
# File lib/recombee_api_client/api/update_auto_reql_segmentation.rb, line 44 def method :post end
path()
click to toggle source
Relative path to the endpoint
# File lib/recombee_api_client/api/update_auto_reql_segmentation.rb, line 65 def path "/{databaseId}/segmentations/auto-reql/#{@segmentation_id}" end
query_parameters()
click to toggle source
Values of query parameters as a Hash. name of parameter => value of the parameter
# File lib/recombee_api_client/api/update_auto_reql_segmentation.rb, line 59 def query_parameters params = {} params end