Class: AdvancedBilling::SnapDay
- Inherits:
-
Object
- Object
- AdvancedBilling::SnapDay
- Defined in:
- lib/advanced_billing/models/snap_day.rb
Overview
Use for subscriptions with product eligible for calendar billing only. Value can be 1-28 or ‘end’.
Constant Summary collapse
- SNAP_DAY =
[ # TODO: Write general description for ENUM_END ENUM_END = 'end'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.validate(value) ⇒ Object
15 16 17 18 19 |
# File 'lib/advanced_billing/models/snap_day.rb', line 15 def self.validate(value) return false if value.nil? SNAP_DAY.include?(value) end |