class RecombeeApiClient::AddUser

Adds a new user to the database.

Attributes

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

Public Class Methods

new(user_id) click to toggle source
  • *Required arguments*

    • user_id -> ID of the user to be added.

# File lib/recombee_api_client/api/add_user.rb, line 21
def initialize(user_id)
  @user_id = user_id
  @timeout = 1000
  @ensure_https = false
end

Public Instance Methods

body_parameters() click to toggle source

Values of body parameters as a Hash

# File lib/recombee_api_client/api/add_user.rb, line 33
def body_parameters
  p = Hash.new
  p
end
method() click to toggle source

HTTP method

# File lib/recombee_api_client/api/add_user.rb, line 28
def method
  :put
end
path() click to toggle source

Relative path to the endpoint

# File lib/recombee_api_client/api/add_user.rb, line 46
def path
  "/{databaseId}/users/#{@user_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/add_user.rb, line 40
def query_parameters
  params = {}
  params
end