class Bootpay::Api

Constants

API

Public Class Methods

new(application_id:, private_key:, mode: 'production') click to toggle source
# File lib/api.rb, line 40
def initialize(application_id:, private_key:, mode: 'production')

  @application_id = application_id
  @private_key    = private_key
  @mode           = mode.presence || 'production'
  @token          = nil
  raise ArgumentError, "개발환경 mode는 development, stage, production 중에서 선택이 가능합니다." if API[@mode.to_sym].blank?
end