class DatadogAPIClient::V1::WidgetPalette
Constants
- BLACK_ON_LIGHT_GREEN
- BLACK_ON_LIGHT_RED
- BLACK_ON_LIGHT_YELLOW
- BLUE
- CUSTOM_BACKGROUND
- CUSTOM_IMAGE
- CUSTOM_TEXT
- GRAY_ON_WHITE
- GREEN
- GREEN_ON_WHITE
- GREY
- ORANGE
- RED
- RED_ON_WHITE
- WHITE_ON_GRAY
- WHITE_ON_GREEN
- WHITE_ON_RED
- WHITE_ON_YELLOW
- YELLOW_ON_WHITE
Public Class 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/datadog_api_client/v1/models/widget_palette.rb, line 44 def self.build_from_hash(value) new.build_from_hash(value) end
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/datadog_api_client/v1/models/widget_palette.rb, line 51 def build_from_hash(value) constantValues = WidgetPalette.constants.select { |c| WidgetPalette::const_get(c) == value } raise "Invalid ENUM value #{value} for class #WidgetPalette" if constantValues.empty? value end