Class: Onlinepay::Balance

Inherits:
APIResource show all
Defined in:
lib/onlinepay/balance.rb

Instance Method Summary collapse

Methods included from Config

included

Instance Method Details

#lists(currency) ⇒ Object



4
5
6
7
8
9
# File 'lib/onlinepay/balance.rb', line 4

def lists(currency)
  # GET '/api/v1/balance'
  params = { params: {currency: currency}, Authorization: bearer_authorize }
  response = RestClient.get("#{Onlinepay.api_base}/api/v1/balance", params)
  response = JSON.parse(response)       
end