Class: Brightpearl::ExchangeRate

Inherits:
Resource
  • Object
show all
Defined in:
lib/brightpearl/resources/exchange_rate.rb

Class Method Summary collapse

Methods inherited from Resource

send_request, to_query

Class Method Details

.getObject



5
6
7
# File 'lib/brightpearl/resources/exchange_rate.rb', line 5

def get
  send_request(path: "accounting-service/exchange-rate/", method: :get)
end

.post(currency_id:, **params) ⇒ Object



10
11
12
# File 'lib/brightpearl/resources/exchange_rate.rb', line 10

def post(currency_id:, **params)
  send_request(path: "accounting-service/currency/#{currency_id}/exchange-rate", method: :post, body: params)
end

.put(currency_id:, **params) ⇒ Object



15
16
17
# File 'lib/brightpearl/resources/exchange_rate.rb', line 15

def put(currency_id:, **params)
  send_request(path: "accounting-service/currency/#{currency_id}/exchange-rate", method: :put, body: params)
end