Class: WhiteLabelMachineName::ShopifyIntegrationSubscriptionAppVersion
- Inherits:
-
Object
- Object
- WhiteLabelMachineName::ShopifyIntegrationSubscriptionAppVersion
- Defined in:
- lib/whitelabelmachinename-ruby-sdk/models/shopify_integration_subscription_app_version.rb
Constant Summary collapse
- BASIC =
'BASIC'.freeze
- SUBSCRIPTION =
'SUBSCRIPTION'.freeze
- API_2019_07 =
'API_2019_07'.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
30 31 32 33 34 |
# File 'lib/whitelabelmachinename-ruby-sdk/models/shopify_integration_subscription_app_version.rb', line 30 def build_from_hash(value) constantValues = ShopifyIntegrationSubscriptionAppVersion.constants.select { |c| ShopifyIntegrationSubscriptionAppVersion::const_get(c) == value } raise "Invalid ENUM value #{value} for class #ShopifyIntegrationSubscriptionAppVersion" if constantValues.empty? value end |