Sha256: 1639f1a673d153ef1aa48672b064a31c0e0d4edd15f421168bd3cdb4950145f0

Contents?: true

Size: 444 Bytes

Versions: 6

Compression:

Stored size: 444 Bytes

Contents

class FakeBraintree::Registry
  def initialize
    clear!
  end

  attr_accessor :customers,:subscriptions, :failures, :transactions, :redirects,
    :credit_cards, :addresses

  def clear!
    @addresses     = {}
    @customers     = {}
    @subscriptions = {}
    @failures      = {}
    @transactions  = {}
    @redirects     = {}
    @credit_cards  = {}
  end

  def failure?(card_number)
    @failures.keys.include?(card_number)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fake_braintree-0.6.0 lib/fake_braintree/registry.rb
fake_braintree-0.5.0 lib/fake_braintree/registry.rb
fake_braintree-0.4.3 lib/fake_braintree/registry.rb
fake_braintree-0.4.2 lib/fake_braintree/registry.rb
fake_braintree-0.4.1 lib/fake_braintree/registry.rb
fake_braintree-0.4 lib/fake_braintree/registry.rb