Skip to content

Commit 14a3c03

Browse files
committed
fix(examples): fix examples for Tone Analyzer and Assistant
1 parent ac9c489 commit 14a3c03

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/assistant_v1.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
require("json")
55

66
# If using IAM
7-
assistant = AssistantV1(
7+
assistant = IBMWatson::AssistantV1.new(
88
iam_apikey: "IAM API KEY",
99
version: "2018-02-16"
1010
)

examples/tone_analyzer_v3.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
require("json")
55

66
# If using IAM
7-
tone_analyzer = ToneAnalyzerV3(
7+
tone_analyzer = IBMWatson::ToneAnalyzerV3.new(
88
iam_apikey: "IAM API KEY",
99
version: "2017-09-21"
1010
)

0 commit comments

Comments
 (0)