Class: YandexTranslatorApi::Config
- Inherits:
-
Object
- Object
- YandexTranslatorApi::Config
- Includes:
- Singleton
- Defined in:
- lib/yandex_translator_api.rb
Overview
configuration
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#default_lang ⇒ Object
Returns the value of attribute default_lang.
Class Method Summary collapse
- .api_key ⇒ Object
- .api_key=(api_key) ⇒ Object
- .default_lang ⇒ Object
- .default_lang=(default_lang) ⇒ Object
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
12 13 14 |
# File 'lib/yandex_translator_api.rb', line 12 def api_key @api_key end |
#default_lang ⇒ Object
Returns the value of attribute default_lang.
12 13 14 |
# File 'lib/yandex_translator_api.rb', line 12 def default_lang @default_lang end |
Class Method Details
.api_key ⇒ Object
14 15 16 |
# File 'lib/yandex_translator_api.rb', line 14 def self.api_key @api_key end |
.api_key=(api_key) ⇒ Object
18 19 20 |
# File 'lib/yandex_translator_api.rb', line 18 def self.api_key=(api_key) @api_key = api_key end |
.default_lang ⇒ Object
22 23 24 |
# File 'lib/yandex_translator_api.rb', line 22 def self.default_lang @default_lang end |
.default_lang=(default_lang) ⇒ Object
26 27 28 |
# File 'lib/yandex_translator_api.rb', line 26 def self.default_lang=(default_lang) @default_lang = default_lang end |