Sha256: 3efdcee192da389dc4473b6828123a685a38e5933284c9229e7df7cf0208eef7
Contents?: true
Size: 641 Bytes
Versions: 5
Compression:
Stored size: 641 Bytes
Contents
module MangoPay class InstantConversion < Resource include HTTPCalls::Fetch include HTTPCalls::Update class << self def get_rate(debited_currency, credited_currency, params) url = "#{MangoPay.api_path}/conversion/rate/#{debited_currency}/#{credited_currency}" MangoPay.request(:get, url, params) end def create(params) url = "#{MangoPay.api_path}/instant-conversion" MangoPay.request(:post, url, params) end def get(id, params) url = "#{MangoPay.api_path}/instant-conversion/#{id}" MangoPay.request(:get, url, params) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems