Class: SlidizeCloud::VideoTransitionType

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Class Method Details

.all_varsObject



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

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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