Module: Watsbot
- Defined in:
- lib/watsbot.rb,
lib/watsbot/state.rb,
lib/watsbot/logger.rb,
lib/watsbot/message.rb,
lib/watsbot/version.rb,
lib/watsbot/base_resource.rb,
lib/watsbot/configuration.rb,
lib/watsbot/response/error.rb,
lib/watsbot/response/parser.rb,
lib/watsbot/response/success.rb
Defined Under Namespace
Modules: Response
Classes: BaseResource, Configuration, Logger, Message, State
Constant Summary
collapse
- BASE_URI =
"https://gateway.watsonplatform.net/conversation/api/v1"
- VERSION =
"1.0.0"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.configuration ⇒ Object
25
26
27
|
# File 'lib/watsbot.rb', line 25
def configuration
@configuration ||= Configuration.new
end
|
Class Method Details
21
22
23
|
# File 'lib/watsbot.rb', line 21
def configure(&block)
yield(configuration)
end
|
.reset ⇒ Object
29
30
31
|
# File 'lib/watsbot.rb', line 29
def reset
@configuration = Configuration.new
end
|
.root ⇒ Object
14
15
16
|
# File 'lib/watsbot.rb', line 14
def self.root
File.dirname __dir__
end
|