class ShipEngine::OrderSourceName
Constants
- AMAZON_CA
- AMAZON_US
- BRIGHTPEARL
- CHANNEL_ADVISOR
- CRATEJOY
- EBAY
- ETSY
- GROUPON_GOODS
- JANE
- MAGENTO
- PAYPAL
- SELLER_ACTIVE
- SHOPIFY
- SQUARESPACE
- STITCH_LABS
- THREE_DCART
- TOPHATTER
- VOLUSION
- WALMART
- WOO_COMMERCE
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/ship_engine/models/order_source_name.rb, line 41 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/ship_engine/models/order_source_name.rb, line 48 def build_from_hash(value) constantValues = OrderSourceName.constants.select { |c| OrderSourceName::const_get(c) == value } raise "Invalid ENUM value #{value} for class #OrderSourceName" if constantValues.empty? value end