class Khalti::Transaction
Khalti
Transaction
API wrapper
Constants
- API_URL
Public Class Methods
all()
click to toggle source
# File lib/khalti/transaction.rb, line 17 def self.all RequestHelper.get("#{API_URL}/") end
find(idx)
click to toggle source
# File lib/khalti/transaction.rb, line 11 def self.find(idx) raise Errors::BlankError, 'Ensure idx is not blank.' \ if idx.nil? || idx.strip.empty? RequestHelper.get("#{API_URL}/#{idx}/") end