Class: GoogleTranslateDiff::Request

Inherits:
Object
  • Object
show all
Extended by:
Dry::Initializer, Forwardable
Defined in:
lib/google_translate_diff/request.rb

Instance Method Summary collapse

Instance Method Details

#callObject



11
12
13
14
15
16
17
# File 'lib/google_translate_diff/request.rb', line 11

def call
  validate_globals

  return values if from == to || values.empty?

  translation
end