class Billplz::Bill
Public Instance Methods
create()
click to toggle source
# File lib/billplz/bill.rb, line 5 def create requires!(@payload, :collection_id, :email, :name, :amount, :callback_url) request(:post, @payload) end
delete()
click to toggle source
# File lib/billplz/bill.rb, line 16 def delete requires!(@payload, :bill_id) @api_url = "#{@api_url}/#{@payload[:bill_id]}" request(:delete, nil) end
get()
click to toggle source
# File lib/billplz/bill.rb, line 10 def get requires!(@payload, :bill_id) @api_url = "#{@api_url}/#{@payload[:bill_id]}" request(:get, nil) end