Class: RazorpayIntegration::Base

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

Direct Known Subclasses

Customer

Constant Summary collapse

BASE_URL =
'https://api.razorpay.com/v1'

Instance Method Summary collapse

Constructor Details

#initialize {|@config| ... } ⇒ Base

Returns a new instance of Base.

Yields:

  • (@config)


8
9
10
11
# File 'lib/razorpay_integration/base.rb', line 8

def initialize
  @config = RazorpayIntegration.configuration
  yield(@config) if block_given?
end