Class: MeaningCloud::Configuration

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

Overview

Main configuration class.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_baseObject

Returns the value of attribute api_base.



20
21
22
# File 'lib/meaning_cloud.rb', line 20

def api_base
  @api_base
end

#keyObject

Returns the value of attribute key.



20
21
22
# File 'lib/meaning_cloud.rb', line 20

def key
  @key
end

#languageObject

Returns the value of attribute language.



20
21
22
# File 'lib/meaning_cloud.rb', line 20

def language
  @language
end

#topic_typesObject

Returns the value of attribute topic_types.



20
21
22
# File 'lib/meaning_cloud.rb', line 20

def topic_types
  @topic_types
end

#user_dictionaryObject

Returns the value of attribute user_dictionary.



20
21
22
# File 'lib/meaning_cloud.rb', line 20

def user_dictionary
  @user_dictionary
end