Sha256: 562beaf62bd4e89c1be63feef46ad33b57514ca8deb1e55fb970d5e8d00c90ed

Contents?: true

Size: 356 Bytes

Versions: 2

Compression:

Stored size: 356 Bytes

Contents

module Piggybak
  class PaymentCalculator::Fake < PaymentCalculator
    KEYS = []
    KLASS = ::Piggybak::PaymentCalculator::Fake

    def self.new(*args)
      return self
    end

    def self.authorize(*args)
      self
    end

    def self.success?
      true
    end

    def self.authorization
    end

    def self.capture(*args)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
piggybak-0.1.1 app/models/piggybak/payment_calculator/fake.rb
piggybak-0.1.0 app/models/piggybak/payment_calculator/fake.rb