Class: AdvancedBilling::SubscriptionSort
- Inherits:
-
Object
- Object
- AdvancedBilling::SubscriptionSort
- Defined in:
- lib/advanced_billing/models/subscription_sort.rb
Overview
Subscription Sort.
Constant Summary collapse
- SUBSCRIPTION_SORT =
[ # TODO: Write general description for SIGNUP_DATE SIGNUP_DATE = 'signup_date'.freeze, # TODO: Write general description for PERIOD_START PERIOD_START = 'period_start'.freeze, # TODO: Write general description for PERIOD_END PERIOD_END = 'period_end'.freeze, # TODO: Write general description for NEXT_ASSESSMENT NEXT_ASSESSMENT = 'next_assessment'.freeze, # TODO: Write general description for UPDATED_AT UPDATED_AT = 'updated_at'.freeze, # TODO: Write general description for CREATED_AT CREATED_AT = 'created_at'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.validate(value) ⇒ Object
29 30 31 32 33 |
# File 'lib/advanced_billing/models/subscription_sort.rb', line 29 def self.validate(value) return false if value.nil? SUBSCRIPTION_SORT.include?(value) end |