class AliseeksApi::ProductRequestComponent

Constants

HTML_DESCRIPTION
SHIPPING
VARIATIONS

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