Class: AdvancedBilling::SubscriptionGroupsListInclude
- Inherits:
-
Object
- Object
- AdvancedBilling::SubscriptionGroupsListInclude
- Defined in:
- lib/advanced_billing/models/subscription_groups_list_include.rb
Overview
Subscription Groups List Include.
Constant Summary collapse
- SUBSCRIPTION_GROUPS_LIST_INCLUDE =
[ # TODO: Write general description for ACCOUNT_BALANCES ACCOUNT_BALANCES = 'account_balances'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = ACCOUNT_BALANCES) ⇒ Object
20 21 22 23 24 |
# File 'lib/advanced_billing/models/subscription_groups_list_include.rb', line 20 def self.from_value(value, default_value = ACCOUNT_BALANCES) return default_value if value.nil? default_value end |
.validate(value) ⇒ Object
14 15 16 17 18 |
# File 'lib/advanced_billing/models/subscription_groups_list_include.rb', line 14 def self.validate(value) return false if value.nil? SUBSCRIPTION_GROUPS_LIST_INCLUDE.include?(value) end |