Sha256: 4279182d46c9c32b9766e6fb546ce254ae34c43b04fdd884de2472a9bb6054d2
Contents?: true
Size: 841 Bytes
Versions: 10
Compression:
Stored size: 841 Bytes
Contents
=begin # Mux Ruby - Copyright 2019 Mux Inc. # NOTE: This file is auto generated. Do not edit this file manually. =end require 'date' module MuxRuby class PlaybackPolicy PUBLIC = 'public'.freeze SIGNED = 'signed'.freeze # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) constantValues = PlaybackPolicy.constants.select { |c| PlaybackPolicy::const_get(c) == value } raise "Invalid ENUM value #{value} for class #PlaybackPolicy" if constantValues.empty? value end end end
Version data entries
10 entries across 10 versions & 1 rubygems