Class: ABBYY::Cloud::Models::TranslationType

Inherits:
String
  • Object
show all
Defined in:
lib/abbyy/cloud/models/translation_type.rb

Constant Summary collapse

VALUES =
%w(mt ht_express ht_professional ht_expert).freeze

Class Method Summary collapse

Class Method Details

.new(string) ⇒ Object



6
7
8
# File 'lib/abbyy/cloud/models/translation_type.rb', line 6

def self.new(string)
  super Types::Strict::String.constrained(included_in: VALUES)[string]
end