appirits/comable

View on GitHub
core/lib/comable/payment_provider.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'comable/payment_provider/base'
require 'comable/payment_provider/general'

module Comable
  module PaymentProvider
    class << self
      def all
        (constants - [:Base]).map do |constant_name|
          const_get(constant_name)
        end
      end
    end
  end
end