Method: QiwiObserver::Payments#initialize
- Defined in:
- lib/qiwi_observer/payments/payments.rb
#initialize ⇒ Payments
Returns a new instance of Payments.
5 6 7 8 9 10 |
# File 'lib/qiwi_observer/payments/payments.rb', line 5 def initialize @wallet = QiwiObserver.config.wallet @token = QiwiObserver.config.token raise ArgumentError, "Wallet and token must be configure" if @wallet.nil? && @token.nil? end |