Class: AdvancedBilling::PrepaymentMethod
- Inherits:
-
Object
- Object
- AdvancedBilling::PrepaymentMethod
- Defined in:
- lib/advanced_billing/models/prepayment_method.rb
Overview
Prepayment Method.
Constant Summary collapse
- PREPAYMENT_METHOD =
[ # TODO: Write general description for CHECK CHECK = 'check'.freeze, # TODO: Write general description for CASH CASH = 'cash'.freeze, # TODO: Write general description for MONEY_ORDER MONEY_ORDER = 'money_order'.freeze, # TODO: Write general description for ACH ACH = 'ach'.freeze, # TODO: Write general description for PAYPAL_ACCOUNT PAYPAL_ACCOUNT = 'paypal_account'.freeze, # TODO: Write general description for CREDIT_CARD CREDIT_CARD = 'credit_card'.freeze, # TODO: Write general description for OTHER OTHER = 'other'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.validate(value) ⇒ Object
32 33 34 35 36 |
# File 'lib/advanced_billing/models/prepayment_method.rb', line 32 def self.validate(value) return false if value.nil? PREPAYMENT_METHOD.include?(value) end |