Class: AdvancedBilling::SubscriptionDateField
- Inherits:
-
Object
- Object
- AdvancedBilling::SubscriptionDateField
- Defined in:
- lib/advanced_billing/models/subscription_date_field.rb
Overview
Subscription Date Field.
Constant Summary collapse
- SUBSCRIPTION_DATE_FIELD =
[ # TODO: Write general description for CURRENT_PERIOD_ENDS_AT CURRENT_PERIOD_ENDS_AT = 'current_period_ends_at'.freeze, # TODO: Write general description for CURRENT_PERIOD_STARTS_AT CURRENT_PERIOD_STARTS_AT = 'current_period_starts_at'.freeze, # TODO: Write general description for CREATED_AT CREATED_AT = 'created_at'.freeze, # TODO: Write general description for ACTIVATED_AT ACTIVATED_AT = 'activated_at'.freeze, # TODO: Write general description for CANCELED_AT CANCELED_AT = 'canceled_at'.freeze, # TODO: Write general description for EXPIRES_AT EXPIRES_AT = 'expires_at'.freeze, # TODO: Write general description for TRIAL_STARTED_AT TRIAL_STARTED_AT = 'trial_started_at'.freeze, # TODO: Write general description for TRIAL_ENDED_AT TRIAL_ENDED_AT = 'trial_ended_at'.freeze, # TODO: Write general description for UPDATED_AT UPDATED_AT = 'updated_at'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.validate(value) ⇒ Object
38 39 40 41 42 |
# File 'lib/advanced_billing/models/subscription_date_field.rb', line 38 def self.validate(value) return false if value.nil? SUBSCRIPTION_DATE_FIELD.include?(value) end |