class Notifo::ResizeMode
Constants
- BOX_PAD
- CROP
- CROP_UPSIZE
- MAX
- MIN
- PAD
- STRETCH
Public Instance Methods
build_from_hash(value)
click to toggle source
Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value
# File lib/notifo/models/resize_mode.rb, line 27 def build_from_hash(value) constantValues = ResizeMode.constants.select { |c| ResizeMode::const_get(c) == value } raise "Invalid ENUM value #{value} for class #ResizeMode" if constantValues.empty? value end