Class: MeaningCloud::Configuration
- Inherits:
-
Object
- Object
- MeaningCloud::Configuration
- Defined in:
- lib/meaning_cloud.rb
Overview
Main configuration class.
Instance Attribute Summary collapse
-
#api_base ⇒ Object
Returns the value of attribute api_base.
-
#key ⇒ Object
Returns the value of attribute key.
-
#language ⇒ Object
Returns the value of attribute language.
-
#topic_types ⇒ Object
Returns the value of attribute topic_types.
-
#user_dictionary ⇒ Object
Returns the value of attribute user_dictionary.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
22 23 24 25 26 27 28 |
# File 'lib/meaning_cloud.rb', line 22 def initialize @key = nil @language = :en @topic_types = 'ec' @api_base = 'https://api.meaningcloud.com/topics-2.0' @user_dictionary = nil end |
Instance Attribute Details
#api_base ⇒ Object
Returns the value of attribute api_base.
20 21 22 |
# File 'lib/meaning_cloud.rb', line 20 def api_base @api_base end |
#key ⇒ Object
Returns the value of attribute key.
20 21 22 |
# File 'lib/meaning_cloud.rb', line 20 def key @key end |
#language ⇒ Object
Returns the value of attribute language.
20 21 22 |
# File 'lib/meaning_cloud.rb', line 20 def language @language end |
#topic_types ⇒ Object
Returns the value of attribute topic_types.
20 21 22 |
# File 'lib/meaning_cloud.rb', line 20 def topic_types @topic_types end |
#user_dictionary ⇒ Object
Returns the value of attribute user_dictionary.
20 21 22 |
# File 'lib/meaning_cloud.rb', line 20 def user_dictionary @user_dictionary end |