Class: AdvancedBilling::ExpirationIntervalUnit

Inherits:
Object
  • Object
show all
Defined in:
lib/advanced_billing/models/expiration_interval_unit.rb

Overview

Expiration Interval Unit.

Constant Summary collapse

EXPIRATION_INTERVAL_UNIT =
[
  # TODO: Write general description for DAY
  DAY = 'day'.freeze,

  # TODO: Write general description for MONTH
  MONTH = 'month'.freeze,

  # TODO: Write general description for NEVER
  NEVER = 'never'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



20
21
22
23
24
# File 'lib/advanced_billing/models/expiration_interval_unit.rb', line 20

def self.validate(value)
  return false if value.nil?

  EXPIRATION_INTERVAL_UNIT.include?(value)
end