Class: ABBYY::Cloud::Models::FileFormat

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

Constant Summary collapse

VALUES =
%w(
  Doc
  Docx
  Rtf
  Txt
).freeze

Class Method Summary collapse

Class Method Details

.new(string) ⇒ Object



11
12
13
# File 'lib/abbyy/cloud/models/file_format.rb', line 11

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