Class: XEClient::HistoricRatePeriodRequest

Inherits:
BaseRequest
  • Object
show all
Defined in:
lib/xe_client/requests/historic_rate_period_request.rb

Instance Method Summary collapse

Methods inherited from BaseRequest

#typhoeus_options

Instance Method Details

#paramsObject



16
17
18
19
20
21
22
23
24
25
26
# File 'lib/xe_client/requests/historic_rate_period_request.rb', line 16

def params
  {
    from: from,
    to: to.join(","),
    start_timestamp: start_timestamp,
    end_timestamp: end_timestamp,
    interval: interval,
    per_page: per_page,
    page: page,
  }
end

#pathObject



12
13
14
# File 'lib/xe_client/requests/historic_rate_period_request.rb', line 12

def path
  "/v1/historic_rate/period.json"
end