Class: WitBot::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/wit_bot/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#hostObject

Returns the value of attribute host.



3
4
5
# File 'lib/wit_bot/configuration.rb', line 3

def host
  @host
end

#minimum_confidenceObject

Returns the value of attribute minimum_confidence.



3
4
5
# File 'lib/wit_bot/configuration.rb', line 3

def minimum_confidence
  @minimum_confidence
end

#tokenObject

Returns the value of attribute token.



3
4
5
# File 'lib/wit_bot/configuration.rb', line 3

def token
  @token
end

#versionObject

Returns the value of attribute version.



3
4
5
# File 'lib/wit_bot/configuration.rb', line 3

def version
  @version
end