Class: AdvancedBilling::InvoiceSortField
- Inherits:
-
Object
- Object
- AdvancedBilling::InvoiceSortField
- Defined in:
- lib/advanced_billing/models/invoice_sort_field.rb
Overview
Invoice Sort Field.
Constant Summary collapse
- INVOICE_SORT_FIELD =
[ # TODO: Write general description for STATUS STATUS = 'status'.freeze, # TODO: Write general description for TOTAL_AMOUNT TOTAL_AMOUNT = 'total_amount'.freeze, # TODO: Write general description for DUE_AMOUNT DUE_AMOUNT = 'due_amount'.freeze, # TODO: Write general description for CREATED_AT CREATED_AT = 'created_at'.freeze, # TODO: Write general description for UPDATED_AT UPDATED_AT = 'updated_at'.freeze, # TODO: Write general description for ISSUE_DATE ISSUE_DATE = 'issue_date'.freeze, # TODO: Write general description for DUE_DATE DUE_DATE = 'due_date'.freeze, # TODO: Write general description for NUMBER NUMBER = 'number'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.validate(value) ⇒ Object
35 36 37 38 39 |
# File 'lib/advanced_billing/models/invoice_sort_field.rb', line 35 def self.validate(value) return false if value.nil? INVOICE_SORT_FIELD.include?(value) end |