Class: Moneytree::PaymentProvider::Base
- Inherits:
-
Object
- Object
- Moneytree::PaymentProvider::Base
- Defined in:
- lib/moneytree/payment_provider/base.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
readonly
Returns the value of attribute account.
-
#payment_gateway ⇒ Object
readonly
Returns the value of attribute payment_gateway.
Instance Method Summary collapse
-
#initialize(payment_gateway) ⇒ Base
constructor
A new instance of Base.
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.account end |
Instance Attribute Details
#account ⇒ Object (readonly)
Returns the value of attribute account.
4 5 6 |
# File 'lib/moneytree/payment_provider/base.rb', line 4 def account @account end |
#payment_gateway ⇒ Object (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 |