Class: Dropbox::Sign::SubFormFieldsPerDocumentFontEnum
- Inherits:
-
Object
- Object
- Dropbox::Sign::SubFormFieldsPerDocumentFontEnum
- Defined in:
- lib/dropbox-sign/models/sub_form_fields_per_document_font_enum.rb
Constant Summary collapse
- HELVETICA =
"helvetica".freeze
- ARIAL =
"arial".freeze
- COURIER =
"courier".freeze
- CALIBRI =
"calibri".freeze
- CAMBRIA =
"cambria".freeze
- GEORGIA =
"georgia".freeze
- TIMES =
"times".freeze
- TREBUCHET =
"trebuchet".freeze
- VERDANA =
"verdana".freeze
- ROBOTO =
"roboto".freeze
- ROBOTO_MONO =
"robotoMono".freeze
- NOTO_SANS =
"notoSans".freeze
- NOTO_SERIF =
"notoSerif".freeze
- NOTO_CJK_JP_REGULAR =
"notoCJK-JP-Regular".freeze
- NOTO_HEBREW_REGULAR =
"notoHebrew-Regular".freeze
- NOTO_SAN_THAI_MERGED =
"notoSanThaiMerged".freeze
Class Method Summary collapse
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.build_from_hash(value) ⇒ String
Builds the enum from string
41 42 43 |
# File 'lib/dropbox-sign/models/sub_form_fields_per_document_font_enum.rb', line 41 def self.build_from_hash(value) new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
48 49 50 51 52 |
# File 'lib/dropbox-sign/models/sub_form_fields_per_document_font_enum.rb', line 48 def build_from_hash(value) constantValues = SubFormFieldsPerDocumentFontEnum.constants.select { |c| SubFormFieldsPerDocumentFontEnum::const_get(c) == value } raise "Invalid ENUM value #{value} for class #SubFormFieldsPerDocumentFontEnum" if constantValues.empty? value end |