Sha256: b705c1f148b1e886a62582355bc0e797dd4611fa1c8cd1865ec2f18c30299430

Contents?: true

Size: 1.67 KB

Versions: 4

Compression:

Stored size: 1.67 KB

Contents

=begin
#Dropbox Sign API

#Dropbox Sign v3 API

The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
Generator version: 7.8.0

=end

require 'date'
require 'time'

module Dropbox
end

module Dropbox::Sign
  class SubFormFieldsPerDocumentFontEnum
    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

    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

    # Builds the enum from string
    # @param [String] The enum value in the form of the string
    # @return [String] The enum value
    def self.build_from_hash(value)
      new.build_from_hash(value)
    end

    # Builds the enum from string
    # @param [String] The enum value in the form of the string
    # @return [String] The enum value
    def build_from_hash(value)
      return value if SubFormFieldsPerDocumentFontEnum.all_vars.include?(value)
      raise "Invalid ENUM value #{value} for class #SubFormFieldsPerDocumentFontEnum"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dropbox-sign-1.8.0 lib/dropbox-sign/models/sub_form_fields_per_document_font_enum.rb
dropbox-sign-1.7.0 lib/dropbox-sign/models/sub_form_fields_per_document_font_enum.rb
dropbox-sign-1.6.1 lib/dropbox-sign/models/sub_form_fields_per_document_font_enum.rb
dropbox-sign-1.6.0 lib/dropbox-sign/models/sub_form_fields_per_document_font_enum.rb