watson-assistant-chatbot 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8afcfdafc856d47abfde428b1bb4f68d7cd0dfe6673aa495534eb864fe6fb3f9
4
- data.tar.gz: 48aeaf00f97360d57da14ab0ae85bda5ec276400b5fb73625fe43d52b73ca748
3
+ metadata.gz: f23fc478404d902f1cecf031711af5acc450e5f18067841f7b3b859e766162ed
4
+ data.tar.gz: b4e207f780519b318d49e0acedc60141dc0dee11df5e5440ad2d6661f90c813d
5
5
  SHA512:
6
- metadata.gz: f56aed58a9146c677aa9bb175df9a42e7c8dad08c0e48b79d396cb06ede075ee482a9eb5b6608b594ed0dca909e7ff971a955a4df94ecd533a81e7c76162312e
7
- data.tar.gz: ead9f11d628208cbad9efd4b18e50e1cbbb9eef69f0a3a3fcdf2945071480c55dd95d7104509254ea9a8642773ec985f17cd79c3627c8cba063f05c43bf831b6
6
+ metadata.gz: 646b4591b70ea6aace68b22decd1a6070b690d612a888eba75c37baea49e78ad743a58fc8277d14129a57fcfb2e03916b33f728b1d3107c5777cb5e781010c7e
7
+ data.tar.gz: 8126ae04fc594cee473d1af3ceebc515d8c3a2c21276db0d3c300b0d411a8586d7b0a2e688c7d005531f6a345faaf8f518cb01c41cb2363085456703ed1640f9
@@ -18,6 +18,14 @@ module WatsonAssistant
18
18
 
19
19
  class << self
20
20
  attr_accessor :api_domain, :api_version
21
+
22
+ def new_with_api_key(workspace_id, api_key)
23
+ new(nil, nil, workspace_id, api_key)
24
+ end
25
+
26
+ def new_with_user_credentials(workspace_id, user_id, password)
27
+ new(user_id, password, workspace_id)
28
+ end
21
29
  end
22
30
 
23
31
  def initialize(user_id, password, workspace_id, api_key = nil)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watson-assistant-chatbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian I. Kamil