Sha256: beed7b7a8b90c1a5b4a6212c1c1b77323b758ef3a8a3d932bfe6845333c3336d
Contents?: true
Size: 901 Bytes
Versions: 5
Compression:
Stored size: 901 Bytes
Contents
[Braintree::Plan, Braintree::Modification].each do |model| model.class_eval do def self.find(id) all.find {|plan| plan.id == id} end end end module Braintree class Descriptor def ==(other) return false unless other.is_a?(Descriptor) name == other.name && phone == other.phone end def attributes_for(action) {:name => name, :phone => phone} end end end module Braintree class Subscription def self.delete(id) cancel(id) end def never_expires @never_expires end end end module Braintree class CreditCard def id token end def expired @expired end def default @default end def number nil end def cvv nil end end end module Braintree class Transaction class CreditCardDetails def id token end end end end
Version data entries
5 entries across 5 versions & 1 rubygems