Skip to content

Commit de33802

Browse files
committed
README: Fix initializing RecombeeClient in the examples
1 parent a5fe6d9 commit de33802

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Or install it yourself as:
2929
require 'recombee_api_client'
3030
include RecombeeApiClient
3131

32-
client = RecombeeClient('--my-database-id--', '--db-private-token--', {:region => 'us-west'})
32+
client = RecombeeClient.new('--my-database-id--', '--db-private-token--', {:region => 'us-west'})
3333

3434
# Generate some random purchases of items by users
3535
NUM = 100
@@ -76,7 +76,7 @@ include RecombeeApiClient
7676
NUM = 100
7777
PROBABILITY_PURCHASED = 0.1
7878

79-
client = RecombeeClient('--my-database-id--', '--db-private-token--', {:region => 'ap-se'})
79+
client = RecombeeClient.new('--my-database-id--', '--db-private-token--', {:region => 'ap-se'})
8080
client.send(ResetDatabase.new) # Clear everything from the database (asynchronous)
8181

8282
# We will use computers as items in this example

0 commit comments

Comments
 (0)