Class: Y::Translate::Configuration
- Inherits:
-
Object
- Object
- Y::Translate::Configuration
- Defined in:
- lib/y/translate/configuration.rb
Constant Summary collapse
- DEFAULT_LANG_FROM =
'en'.freeze
- DEFAULT_LANG_TO =
'ru'.freeze
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#lang_from ⇒ Object
Returns the value of attribute lang_from.
-
#lang_to ⇒ Object
Returns the value of attribute lang_to.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 |
# File 'lib/y/translate/configuration.rb', line 9 def initialize @lang_from = DEFAULT_LANG_FROM @lang_to = DEFAULT_LANG_TO end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
7 8 9 |
# File 'lib/y/translate/configuration.rb', line 7 def api_key @api_key end |
#lang_from ⇒ Object
Returns the value of attribute lang_from.
7 8 9 |
# File 'lib/y/translate/configuration.rb', line 7 def lang_from @lang_from end |
#lang_to ⇒ Object
Returns the value of attribute lang_to.
7 8 9 |
# File 'lib/y/translate/configuration.rb', line 7 def lang_to @lang_to end |