Class: ABBYY::Cloud::Models::CostType

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

Constant Summary collapse

VALUES =
%w(Default SomeDiscounts AllDiscounts).freeze

Class Method Summary collapse

Class Method Details

.new(string) ⇒ Object



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

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