Class: PDFGeneratorAPI::AccessibilityOption

Inherits:
Object
  • Object
show all
Defined in:
lib/pdf_generator_api_client/models/accessibility_option.rb

Constant Summary collapse

CLEAR_STRUCTURE =
"clear_structure".freeze
CLEAR_BOOKMARKS =
"clear_bookmarks".freeze
EMBED_FONT =
"embed_font".freeze
ADD_MISSING_UNICODE =
"add_missing_unicode".freeze
ADD_TAGS =
"add_tags".freeze
SET_LANGUAGE =
"set_language".freeze
SET_TITLE =
"set_title".freeze
SET_DISPLAY_DOC_TITLE =
"set_display_doc_title".freeze
SET_PDF_UA_STANDARD =
"set_pdf_ua_standard".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all_varsObject



28
29
30
# File 'lib/pdf_generator_api_client/models/accessibility_option.rb', line 28

def self.all_vars
  @all_vars ||= [CLEAR_STRUCTURE, CLEAR_BOOKMARKS, EMBED_FONT, ADD_MISSING_UNICODE, ADD_TAGS, SET_LANGUAGE, SET_TITLE, SET_DISPLAY_DOC_TITLE, SET_PDF_UA_STANDARD].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



35
36
37
# File 'lib/pdf_generator_api_client/models/accessibility_option.rb', line 35

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



42
43
44
45
# File 'lib/pdf_generator_api_client/models/accessibility_option.rb', line 42

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