Class: SlidizeCloud::VideoTransitionType
- Inherits:
-
Object
- Object
- SlidizeCloud::VideoTransitionType
- Defined in:
- lib/slidize_cloud/models/video_transition_type.rb
Constant Summary collapse
- NONE =
"None".freeze
- RANDOM =
"Random".freeze
- FROM_PRESENTATION =
"FromPresentation".freeze
- FADE =
"Fade".freeze
- DISTANCE =
"Distance".freeze
- SLIDE_LEFT =
"SlideLeft".freeze
- CIRCLE_CROP =
"CircleCrop".freeze
- DISSOLVE =
"Dissolve".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
44 45 46 |
# File 'lib/slidize_cloud/models/video_transition_type.rb', line 44 def self.all_vars @all_vars ||= [NONE, RANDOM, FROM_PRESENTATION, FADE, DISTANCE, SLIDE_LEFT, CIRCLE_CROP, DISSOLVE].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
51 52 53 |
# File 'lib/slidize_cloud/models/video_transition_type.rb', line 51 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
58 59 60 61 |
# File 'lib/slidize_cloud/models/video_transition_type.rb', line 58 def build_from_hash(value) return value if VideoTransitionType.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #VideoTransitionType" end |