Sha256: b6a08d982b39b0202a8775c47d451f4824a115fb9cc4a576ff7eaec80f269e56

Contents?: true

Size: 826 Bytes

Versions: 2

Compression:

Stored size: 826 Bytes

Contents

module Piggybak
  module Config
    class << self
      attr_accessor :payment_calculators
      attr_accessor :shipping_calculators
      attr_accessor :tax_calculators
      attr_accessor :default_country
      attr_accessor :activemerchant_mode

      def reset
        @payment_calculators = ["::Piggybak::PaymentCalculator::Fake",
                                "::Piggybak::PaymentCalculator::AuthorizeNet"]
        @shipping_calculators = ["::Piggybak::ShippingCalculator::FlatRate",
                                 "::Piggybak::ShippingCalculator::Free",
                                 "::Piggybak::ShippingCalculator::Range"]
        @tax_calculators = ["::Piggybak::TaxCalculator::Percent"]

        @default_country = "US"

        @activemerchant_mode = :production
      end
    end

    self.reset
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
piggybak-0.3.1 lib/piggybak/config.rb
piggybak-0.3.0 lib/piggybak/config.rb