Class: MachineTranslation::Configuration

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

Constant Summary collapse

DEFAULT_GOOGLE_KEY =
'TBA'
DEFAULT_GOOGLE_REFERER =
'TBA'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_keyObject

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_refererObject

Returns the value of attribute google_referer.



19
20
21
# File 'lib/machine_translation/configuration.rb', line 19

def google_referer
  @google_referer
end