class RecombeeApiClient::UpdatePropertyBasedSegmentation
Updates a Property Based Segmentation
Attributes
Public Class Methods
Source
# File lib/recombee_api_client/api/update_property_based_segmentation.rb, line 29 def initialize(segmentation_id, optional = {}) @segmentation_id = segmentation_id optional = normalize_optional(optional) @property_name = optional['propertyName'] @title = optional['title'] @description = optional['description'] @optional = optional @timeout = 10000 @ensure_https = false @optional.each do |par, _| fail UnknownOptionalParameter.new(par) unless ["propertyName","title","description"].include? par end end
-
*Required arguments*
-
segmentation_id
-> ID of the updated Segmentation
-
-
*Optional arguments (given as hash optional)*
-
propertyName
-> Name of the property on which the Segmentation should be based -
title
-> Human-readable name that is shown in the Recombee Admin UI. -
description
-> Description that is shown in the Recombee Admin UI.
-
Public Instance Methods
Source
# File lib/recombee_api_client/api/update_property_based_segmentation.rb, line 49 def body_parameters p = Hash.new p['propertyName'] = @optional['propertyName'] if @optional.include? 'propertyName' p['title'] = @optional['title'] if @optional.include? 'title' p['description'] = @optional['description'] if @optional.include? 'description' p end
Values of body parameters as a Hash
Source
# File lib/recombee_api_client/api/update_property_based_segmentation.rb, line 44 def method :post end
HTTP method
Source
# File lib/recombee_api_client/api/update_property_based_segmentation.rb, line 65 def path "/{databaseId}/segmentations/property-based/#{@segmentation_id}" end
Relative path to the endpoint
Source
# File lib/recombee_api_client/api/update_property_based_segmentation.rb, line 59 def query_parameters params = {} params end
Values of query parameters as a Hash. name of parameter => value of the parameter