Sha256: 4c9e4e72e70d591dfdb8ccfac566864bb3ef2c6692dd84a18d005d7b0e3d8e4d

Contents?: true

Size: 1.07 KB

Versions: 30

Compression:

Stored size: 1.07 KB

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
      attr_accessor :email_sender
      attr_accessor :order_cc
      attr_accessor :logging
      attr_accessor :logging_file

      def reset
        @email_sender = "support@piggybak.org"
        @order_cc = nil

        @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

        @logging = false
        @logging_file = "/log/orders.log"
      end
    end

    self.reset
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
piggybak-0.5.3 lib/piggybak/config.rb
piggybak-0.5.2 lib/piggybak/config.rb
piggybak-0.5.1 lib/piggybak/config.rb
piggybak-0.5.0 lib/piggybak/config.rb
piggybak-0.4.39 lib/piggybak/config.rb
piggybak-0.4.38 lib/piggybak/config.rb
piggybak-0.4.37 lib/piggybak/config.rb
piggybak-0.4.36 lib/piggybak/config.rb
piggybak-0.4.35 lib/piggybak/config.rb
piggybak-0.4.34 lib/piggybak/config.rb
piggybak-0.4.33 lib/piggybak/config.rb
piggybak-0.4.32 lib/piggybak/config.rb
piggybak-0.4.31 lib/piggybak/config.rb
piggybak-0.4.30 lib/piggybak/config.rb
piggybak-0.4.29 lib/piggybak/config.rb
piggybak-0.4.28 lib/piggybak/config.rb
piggybak-0.4.27 lib/piggybak/config.rb
piggybak-0.4.26 lib/piggybak/config.rb
piggybak-0.4.25 lib/piggybak/config.rb
piggybak-0.4.24 lib/piggybak/config.rb