Method: ChanPay::Client#initialize

Defined in:
lib/chan_pay/client.rb

#initialize(options_arg) ⇒ Client

Returns a new instance of Client.



20
21
22
23
24
25
26
27
28
# File 'lib/chan_pay/client.rb', line 20

def initialize(options_arg)
  options = Utils.symbolize_keys(options_arg)

  @partner_id = options[:partner_id]
  @seller_id = options[:seller_id]
  @server_uri = URI options[:server_url]
  @private_key = options[:private_key]
  @public_key = options[:public_key]
end