Class: SlidizeCloud::VideoResolutionType

Inherits:
Object
  • Object
show all
Defined in:
lib/slidize_cloud/models/video_resolution_type.rb

Constant Summary collapse

SD =
"SD".freeze
HD =
"HD".freeze
FULL_HD =
"FullHD".freeze
QHD =
"QHD".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all_varsObject



40
41
42
# File 'lib/slidize_cloud/models/video_resolution_type.rb', line 40

def self.all_vars
  @all_vars ||= [SD, HD, FULL_HD, QHD].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



47
48
49
# File 'lib/slidize_cloud/models/video_resolution_type.rb', line 47

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



54
55
56
57
# File 'lib/slidize_cloud/models/video_resolution_type.rb', line 54

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