Class: ABBYY::Cloud::Models::CostType
- Inherits:
-
String
- Object
- String
- ABBYY::Cloud::Models::CostType
- 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 |