Class: AdvancedBilling::CreditScheme

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

Overview

Credit Scheme.

Constant Summary collapse

CREDIT_SCHEME =
[
  # TODO: Write general description for NONE
  NONE = 'none'.freeze,

  # TODO: Write general description for CREDIT
  CREDIT = 'credit'.freeze,

  # TODO: Write general description for REFUND
  REFUND = 'refund'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



20
21
22
23
24
# File 'lib/advanced_billing/models/credit_scheme.rb', line 20

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

  CREDIT_SCHEME.include?(value)
end