Class: Dropbox::Sign::SubFormFieldsPerDocumentFontEnum

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Class Method Details

.all_varsObject



38
39
40
# File 'lib/dropbox-sign/models/sub_form_fields_per_document_font_enum.rb', line 38

def self.all_vars
  @all_vars ||= [HELVETICA, ARIAL, COURIER, CALIBRI, CAMBRIA, GEORGIA, TIMES, TREBUCHET, VERDANA, ROBOTO, ROBOTO_MONO, NOTO_SANS, NOTO_SERIF, NOTO_CJK_JP_REGULAR, NOTO_HEBREW_REGULAR, NOTO_SAN_THAI_MERGED].freeze
end

.build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



45
46
47
# File 'lib/dropbox-sign/models/sub_form_fields_per_document_font_enum.rb', line 45

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

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



52
53
54
55
# File 'lib/dropbox-sign/models/sub_form_fields_per_document_font_enum.rb', line 52

def build_from_hash(value)
  return value if SubFormFieldsPerDocumentFontEnum.all_vars.include?(value)
  raise "Invalid ENUM value #{value} for class #SubFormFieldsPerDocumentFontEnum"
end