class ReliefWebAPI::FacetsIntervalPost

Constants

DAY
MONTH
WEEK
YEAR

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/reliefweb-api/models/facets_interval_post.rb, line 26
def build_from_hash(value)
  constantValues = FacetsIntervalPost.constants.select { |c| FacetsIntervalPost::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #FacetsIntervalPost" if constantValues.empty?
  value
end