Class: PaystackBaseObject

Inherits:
Object
  • Object
show all
Defined in:
lib/paystack/objects/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(paystackObj) ⇒ PaystackBaseObject

Returns a new instance of PaystackBaseObject.



6
7
8
9
10
11
# File 'lib/paystack/objects/base.rb', line 6

def initialize(paystackObj)
	unless !paystackObj.nil?
		raise ArgumentError, "Paystack object cannot be nil!!"
	end
	@paystack = paystackObj
end

Instance Attribute Details

#paystackObject (readonly)

Returns the value of attribute paystack.



4
5
6
# File 'lib/paystack/objects/base.rb', line 4

def paystack
  @paystack
end