Class: AdvancedBilling::CustomFieldOwner
- Inherits:
-
Object
- Object
- AdvancedBilling::CustomFieldOwner
- Defined in:
- lib/advanced_billing/models/custom_field_owner.rb
Overview
Custom Field Owner.
Constant Summary collapse
- CUSTOM_FIELD_OWNER =
[ # TODO: Write general description for CUSTOMER CUSTOMER = 'Customer'.freeze, # TODO: Write general description for SUBSCRIPTION SUBSCRIPTION = 'Subscription'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.validate(value) ⇒ Object
17 18 19 20 21 |
# File 'lib/advanced_billing/models/custom_field_owner.rb', line 17 def self.validate(value) return false if value.nil? CUSTOM_FIELD_OWNER.include?(value) end |