Module: Paperdrive::Client::Currencies

Includes:
Parameters
Included in:
Paperdrive::Client
Defined in:
lib/paperdrive/client/currencies.rb

Overview

Instance methods related to Currencies to embed into Paperdrive::Client
arguments are compatible with the Pipedribe API.

Instance Method Summary collapse

Instance Method Details

#all_currencies(**args) ⇒ Paperdrive::Response

GET

fetch all supported currencies



18
19
20
21
22
23
# File 'lib/paperdrive/client/currencies.rb', line 18

def all_currencies(**args)
  params = parameters(args) do
    optional_params :term
  end
  request(:get, 'currencies', params)
end