class PostFinanceCheckout::ShopifySubscriptionBillingIntervalUnit
Constants
- DAYS
- HOURS
- MINUTES
- MONTHS
- WEEKS
- YEARS
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/postfinancecheckout-ruby-sdk/models/shopify_subscription_billing_interval_unit.rb, line 33 def build_from_hash(value) constantValues = ShopifySubscriptionBillingIntervalUnit.constants.select { |c| ShopifySubscriptionBillingIntervalUnit::const_get(c) == value } raise "Invalid ENUM value #{value} for class #ShopifySubscriptionBillingIntervalUnit" if constantValues.empty? value end