Class: MachineTranslation::Configuration
- Inherits:
-
Object
- Object
- MachineTranslation::Configuration
- Defined in:
- lib/machine_translation/configuration.rb
Constant Summary collapse
- DEFAULT_GOOGLE_KEY =
'TBA'
- DEFAULT_GOOGLE_REFERER =
'TBA'
Instance Attribute Summary collapse
-
#google_key ⇒ Object
Returns the value of attribute google_key.
-
#google_referer ⇒ Object
Returns the value of attribute google_referer.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
24 25 26 27 |
# File 'lib/machine_translation/configuration.rb', line 24 def initialize @google_key = DEFAULT_GOOGLE_KEY @google_referer = DEFAULT_GOOGLE_REFERER end |
Instance Attribute Details
#google_key ⇒ Object
Returns the value of attribute google_key.
19 20 21 |
# File 'lib/machine_translation/configuration.rb', line 19 def google_key @google_key end |
#google_referer ⇒ Object
Returns the value of attribute google_referer.
19 20 21 |
# File 'lib/machine_translation/configuration.rb', line 19 def google_referer @google_referer end |