Class: WhiteLabelMachineName::ShopifySubscriptionWeekday
- Inherits:
-
Object
- Object
- WhiteLabelMachineName::ShopifySubscriptionWeekday
- Defined in:
- lib/whitelabelmachinename-ruby-sdk/models/shopify_subscription_weekday.rb
Constant Summary collapse
- MONDAY =
'MONDAY'.freeze
- TUESDAY =
'TUESDAY'.freeze
- WEDNESDAY =
'WEDNESDAY'.freeze
- THURSDAY =
'THURSDAY'.freeze
- FRIDAY =
'FRIDAY'.freeze
- SATURDAY =
'SATURDAY'.freeze
- SUNDAY =
'SUNDAY'.freeze
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
34 35 36 37 38 |
# File 'lib/whitelabelmachinename-ruby-sdk/models/shopify_subscription_weekday.rb', line 34 def build_from_hash(value) constantValues = ShopifySubscriptionWeekday.constants.select { |c| ShopifySubscriptionWeekday::const_get(c) == value } raise "Invalid ENUM value #{value} for class #ShopifySubscriptionWeekday" if constantValues.empty? value end |