class RecombeeApiClient::SetUserValues

Set/update (some) property values of a given user. The properties (columns) must be previously created by [Add user property](docs.recombee.com/api.html#add-user-property).

Attributes

ensure_https[RW]
timeout[RW]
user_id[R]

Public Class Methods

new(user_id, values, optional = {}) click to toggle source
* *Required arguments*
  - +user_id+ -> ID of the user which will be modified.

  - +values+ -> The values for the individual properties.

Example of body: “`

{
  "country": "US",
  "sex": "F",
}

“`

* *Optional arguments (given as hash optional)*
  - +cascadeCreate+ -> Sets whether the item should be created  if not present in the database.
Calls superclass method
# File lib/recombee_api_client/api/set_user_values.rb, line 30
def initialize(user_id, values, optional = {})
  super(values, optional)
  @user_id = user_id
  @timeout = 1000
  @ensure_https = false
end

Public Instance Methods

path() click to toggle source

Relative path to the endpoint

# File lib/recombee_api_client/api/set_user_values.rb, line 38
def path
  "/{databaseId}/users/#{@user_id}"
end