Class: ABBYY::Cloud::Models::Label

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

Constant Summary collapse

FORMAT =
/\A.{1,80}\z/

Class Method Summary collapse

Class Method Details

.new(string) ⇒ Object



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

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