Module: EffectiveProducts

Includes:
EffectiveGem
Defined in:
lib/effective_products.rb,
lib/effective_products/engine.rb,
lib/effective_products/version.rb

Defined Under Namespace

Classes: Engine

Constant Summary collapse

VERSION =
'0.0.2'.freeze

Class Method Summary collapse

Class Method Details

.config_keysObject



8
9
10
11
12
13
14
# File 'lib/effective_products.rb', line 8

def self.config_keys
  [
    :rings_table_name, :ring_payments_table_name, :ring_payment_class_name,
    :stamps_table_name, :stamp_payments_table_name, :stamp_payment_class_name,
    :layout, :use_effective_roles
  ]
end

.RingPaymentObject



18
19
20
# File 'lib/effective_products.rb', line 18

def self.RingPayment
  ring_payment_class_name&.constantize || Effective::RingPayment
end

.StampPaymentObject



22
23
24
# File 'lib/effective_products.rb', line 22

def self.StampPayment
  stamp_payment_class_name&.constantize || Effective::StampPayment
end