Class: SlidizeCloud::VideoResolutionType
- Inherits:
-
Object
- Object
- SlidizeCloud::VideoResolutionType
- 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
- .all_vars ⇒ Object
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.all_vars ⇒ Object
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
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
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 |