Class: AdvancedBilling::InvoiceDateField

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

Overview

Invoice Date Field.

Constant Summary collapse

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

  # TODO: Write general description for DUE_DATE
  DUE_DATE = 'due_date'.freeze,

  # TODO: Write general description for ISSUE_DATE
  ISSUE_DATE = 'issue_date'.freeze,

  # TODO: Write general description for UPDATED_AT
  UPDATED_AT = 'updated_at'.freeze,

  # TODO: Write general description for PAID_DATE
  PAID_DATE = 'paid_date'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



26
27
28
29
30
# File 'lib/advanced_billing/models/invoice_date_field.rb', line 26

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

  INVOICE_DATE_FIELD.include?(value)
end