Class: OpenapiClient::FontFamily

Inherits:
Object
  • Object
show all
Defined in:
lib/openapi_client/models/font_family.rb

Constant Summary collapse

HELVETICA =
"Helvetica".freeze
ARIAL =
"Arial".freeze
ARIAL_BLACK =
"Arial Black".freeze
VERDANA =
"Verdana".freeze
TAHOMA =
"Tahoma".freeze
TREBUCHET_MS =
"Trebuchet MS".freeze
IMPACT =
"Impact".freeze
GILL_SANS =
"Gill Sans".freeze
TIMES_NEW_ROMAN =
"Times New Roman".freeze
GEORGIA =
"Georgia".freeze
PALATINO =
"Palatino".freeze
BASKERVILLE =
"Baskerville".freeze
ANDAL_MONO =
"Andalé Mono".freeze
COURIER =
"Courier".freeze
LUCIDA =
"Lucida".freeze
MONACO =
"Monaco".freeze
BRADLEY_HAND =
"Bradley Hand".freeze
BRUSH_SCRIPT_MT =
"Brush Script MT".freeze
LUMINARI =
"Luminari".freeze
COMIC_SANS_MS =
"Comic Sans MS".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all_varsObject



39
40
41
# File 'lib/openapi_client/models/font_family.rb', line 39

def self.all_vars
  @all_vars ||= [HELVETICA, ARIAL, ARIAL_BLACK, VERDANA, TAHOMA, TREBUCHET_MS, IMPACT, GILL_SANS, TIMES_NEW_ROMAN, GEORGIA, PALATINO, BASKERVILLE, ANDAL_MONO, COURIER, LUCIDA, MONACO, BRADLEY_HAND, BRUSH_SCRIPT_MT, LUMINARI, COMIC_SANS_MS].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



46
47
48
# File 'lib/openapi_client/models/font_family.rb', line 46

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



53
54
55
56
# File 'lib/openapi_client/models/font_family.rb', line 53

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