Class: AdvancedBilling::PaymentType
- Inherits:
-
Object
- Object
- AdvancedBilling::PaymentType
- Defined in:
- lib/advanced_billing/models/payment_type.rb
Overview
Payment Type.
Constant Summary collapse
- PAYMENT_TYPE =
[ # TODO: Write general description for CREDIT_CARD CREDIT_CARD = 'credit_card'.freeze, # TODO: Write general description for BANK_ACCOUNT BANK_ACCOUNT = 'bank_account'.freeze, # TODO: Write general description for PAYPAL_ACCOUNT PAYPAL_ACCOUNT = 'paypal_account'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.validate(value) ⇒ Object
20 21 22 23 24 |
# File 'lib/advanced_billing/models/payment_type.rb', line 20 def self.validate(value) return false if value.nil? PAYMENT_TYPE.include?(value) end |