Class: WitBot::Configuration
- Inherits:
-
Object
- Object
- WitBot::Configuration
- Defined in:
- lib/wit_bot/configuration.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#minimum_confidence ⇒ Object
Returns the value of attribute minimum_confidence.
-
#token ⇒ Object
Returns the value of attribute token.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
4 5 6 7 8 9 |
# File 'lib/wit_bot/configuration.rb', line 4 def initialize @token = nil @host = 'https://api.wit.ai' @minimum_confidence = 0 @version = '20160313' end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/wit_bot/configuration.rb', line 3 def host @host end |
#minimum_confidence ⇒ Object
Returns the value of attribute minimum_confidence.
3 4 5 |
# File 'lib/wit_bot/configuration.rb', line 3 def minimum_confidence @minimum_confidence end |
#token ⇒ Object
Returns the value of attribute token.
3 4 5 |
# File 'lib/wit_bot/configuration.rb', line 3 def token @token end |
#version ⇒ Object
Returns the value of attribute version.
3 4 5 |
# File 'lib/wit_bot/configuration.rb', line 3 def version @version end |