Class: AdvancedBilling::ListPrepaymentDateField

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

Overview

List Prepayment Date Field.

Constant Summary collapse

LIST_PREPAYMENT_DATE_FIELD =
[
  # TODO: Write general description for CREATED_AT
  CREATED_AT = 'created_at'.freeze,

  # TODO: Write general description for APPLICATION_AT
  APPLICATION_AT = 'application_at'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



17
18
19
20
21
# File 'lib/advanced_billing/models/list_prepayment_date_field.rb', line 17

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

  LIST_PREPAYMENT_DATE_FIELD.include?(value)
end