Method: Papapi::Merchant#initialize
- Defined in:
- lib/papapi/merchant.rb
#initialize(session, response = nil) ⇒ Merchant
Returns a new instance of Merchant.
19 20 21 22 23 |
# File 'lib/papapi/merchant.rb', line 19 def initialize(session, response = nil) @session = session raise "Merchant session is required" if !@session.is_merchant? @response = response end |