Class: Moneytree::PaymentProvider::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/moneytree/payment_provider/base.rb

Direct Known Subclasses

Square, Stripe

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payment_gateway) ⇒ Base

Returns a new instance of Base.



6
7
8
9
# File 'lib/moneytree/payment_provider/base.rb', line 6

def initialize(payment_gateway)
  @payment_gateway = payment_gateway
  @account = @payment_gateway.
end

Instance Attribute Details

#accountObject (readonly)

Returns the value of attribute account.



4
5
6
# File 'lib/moneytree/payment_provider/base.rb', line 4

def 
  @account
end

#payment_gatewayObject (readonly)

Returns the value of attribute payment_gateway.



4
5
6
# File 'lib/moneytree/payment_provider/base.rb', line 4

def payment_gateway
  @payment_gateway
end