Class: ABBYY::Cloud::Models::DiscountType

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

Constant Summary collapse

VALUES =
%w(
  TMTextMatch
  TMTaggedTextMatch
  TMHalfContextMatch
  TMFullContextMatch
).freeze

Class Method Summary collapse

Class Method Details

.new(string) ⇒ Object



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

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