Class: ActiveWepay::Withdrawal

Inherits:
Base
  • Object
show all
Defined in:
lib/activewepay.rb

Constant Summary

Constants inherited from Base

Base::PRODUCTION_API_ENDPOINT, Base::PRODUCTION_UI_ENDPOINT, Base::STAGE_API_ENDPOINT, Base::STAGE_UI_ENDPOINT

Instance Attribute Summary

Attributes inherited from Base

#amount, #callback_uri, #errors, #id, #name, #oauth_token, #redirect_uri, #response

Class Method Summary collapse

Methods inherited from Base

#call, #initialize

Constructor Details

This class inherits a constructor from ActiveWepay::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ActiveWepay::Base

Class Method Details

.create(options) ⇒ Object



200
201
202
203
204
205
206
207
208
# File 'lib/activewepay.rb', line 200

def self.create(options)
  withdrawal = self.new(options)
  
  withdrawal.call('/withdrawal/create', withdrawal.oauth_token, {
    account_id: withdrawal.,
    redirect_uri: withdrawal.redirect_uri,
    mode: 'iframe'
  })
end