Class: Y::Translate::Configuration

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

Constant Summary collapse

DEFAULT_LANG_FROM =
'en'.freeze
DEFAULT_LANG_TO =
'ru'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_keyObject

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_fromObject

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_toObject

Returns the value of attribute lang_to.



7
8
9
# File 'lib/y/translate/configuration.rb', line 7

def lang_to
  @lang_to
end