Class: ABBYY::Cloud::Models::Status

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

Constant Summary collapse

VALUES =
%w(
  New
  Submitted
  PaymentRequired
  Paid
  InProgress
  Done
  Failed
  Accepted
  ReworkRequired
  Canceled
).freeze

Class Method Summary collapse

Class Method Details

.new(string) ⇒ Object



17
18
19
# File 'lib/abbyy/cloud/models/status.rb', line 17

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