Sha256: cedde64c0605b413f5bdf98d2c2fec45c7ee76b0e86ba9b9b8a9eea838e83382

Contents?: true

Size: 268 Bytes

Versions: 18

Compression:

Stored size: 268 Bytes

Contents

module ActiveMerchant
  module Fulfillment
    module Base
      mattr_accessor :mode
      self.mode = :production
      
      def self.service(name)
        ActiveMerchant::Fulfillment.const_get("#{name.to_s.downcase}_service".camelize)
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
active_fulfillment-2.1.9 lib/active_fulfillment/fulfillment/base.rb
active_fulfillment-2.1.8 lib/active_fulfillment/fulfillment/base.rb
active_fulfillment-2.1.7 lib/active_fulfillment/fulfillment/base.rb
active_fulfillment-2.1.6 lib/active_fulfillment/fulfillment/base.rb
active_fulfillment-2.1.5 lib/active_fulfillment/fulfillment/base.rb
active_fulfillment-2.1.4 lib/active_fulfillment/fulfillment/base.rb
active_fulfillment-2.1.3 lib/active_fulfillment/fulfillment/base.rb
active_fulfillment-2.1.2 lib/active_fulfillment/fulfillment/base.rb
active_fulfillment-2.1.1 lib/active_fulfillment/fulfillment/base.rb
active_fulfillment-2.1.0 lib/active_fulfillment/fulfillment/base.rb
active_fulfillment-2.0.2 lib/active_fulfillment/fulfillment/base.rb
active_fulfillment-2.0.1 lib/active_fulfillment/fulfillment/base.rb
active_fulfillment-2.0.0 lib/active_fulfillment/fulfillment/base.rb
active_fulfillment-1.0.3 lib/active_fulfillment/fulfillment/base.rb
active_fulfillment-1.0.2 lib/active_fulfillment/fulfillment/base.rb
active_fulfillment-1.0.1 lib/active_fulfillment/fulfillment/base.rb
active_fulfillment-1.0.0 lib/active_fulfillment/fulfillment/base.rb
active_fulfillment-0.10.0 lib/active_fulfillment/fulfillment/base.rb