Class: PaystackBaseObject
- Inherits:
-
Object
- Object
- PaystackBaseObject
- Defined in:
- lib/paystack/objects/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#paystack ⇒ Object
readonly
Returns the value of attribute paystack.
Instance Method Summary collapse
-
#initialize(paystackObj) ⇒ PaystackBaseObject
constructor
A new instance of PaystackBaseObject.
Constructor Details
#initialize(paystackObj) ⇒ PaystackBaseObject
Returns a new instance of PaystackBaseObject.
5 6 7 8 9 10 |
# File 'lib/paystack/objects/base.rb', line 5 def initialize(paystackObj) unless !paystackObj.nil? raise ArgumentError, "Paystack object cannot be nil!!" end @paystack = paystackObj end |
Instance Attribute Details
#paystack ⇒ Object (readonly)
Returns the value of attribute paystack.
3 4 5 |
# File 'lib/paystack/objects/base.rb', line 3 def paystack @paystack end |