Class: Pay::FakeProcessor::PaymentMethod

Inherits:
Object
  • Object
show all
Defined in:
lib/pay/fake_processor/payment_method.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pay_payment_method) ⇒ PaymentMethod

Returns a new instance of PaymentMethod.


8
9
10
# File 'lib/pay/fake_processor/payment_method.rb', line 8

def initialize(pay_payment_method)
  @pay_payment_method = pay_payment_method
end

Instance Attribute Details

#pay_payment_methodObject (readonly)

Returns the value of attribute pay_payment_method.


4
5
6
# File 'lib/pay/fake_processor/payment_method.rb', line 4

def pay_payment_method
  @pay_payment_method
end

Instance Method Details

#detachObject

Remove payment method


17
18
# File 'lib/pay/fake_processor/payment_method.rb', line 17

def detach
end

#make_default!Object

Sets payment method as default on Stripe


13
14
# File 'lib/pay/fake_processor/payment_method.rb', line 13

def make_default!
end