Class: AdvancedBilling::GroupTargetType
- Inherits:
-
Object
- Object
- AdvancedBilling::GroupTargetType
- Defined in:
- lib/advanced_billing/models/group_target_type.rb
Overview
The type of object indicated by the id attribute.
Constant Summary collapse
- GROUP_TARGET_TYPE =
[ # TODO: Write general description for CUSTOMER CUSTOMER = 'customer'.freeze, # TODO: Write general description for SUBSCRIPTION SUBSCRIPTION = 'subscription'.freeze, # TODO: Write general description for ENUM_SELF ENUM_SELF = 'self'.freeze, # TODO: Write general description for PARENT PARENT = 'parent'.freeze, # TODO: Write general description for ELDEST ELDEST = 'eldest'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.validate(value) ⇒ Object
26 27 28 29 30 |
# File 'lib/advanced_billing/models/group_target_type.rb', line 26 def self.validate(value) return false if value.nil? GROUP_TARGET_TYPE.include?(value) end |