Class: Helo::Statistics

Inherits:
API
  • Object
show all
Defined in:
lib/helo/apis/statistics.rb

Instance Method Summary collapse

Instance Method Details

#retrieve_daily(request_data = {}) ⇒ Object



11
12
13
14
15
# File 'lib/helo/apis/statistics.rb', line 11

def retrieve_daily(request_data = {})
  request = StatisticsRetrieveDailyRequest.new(request_data)
  response = @client.request(:get, "/activity/statistics/daily", params: request.to_params)
  StatisticsDailyResponse.from_hash(response.body)
end

#retrieve_hourly(request_data = {}) ⇒ Object



5
6
7
8
9
# File 'lib/helo/apis/statistics.rb', line 5

def retrieve_hourly(request_data = {})
  request = StatisticsRetrieveHourlyRequest.new(request_data)
  response = @client.request(:get, "/activity/statistics/hourly", params: request.to_params)
  StatisticsHourlyResponse.from_hash(response.body)
end

#retrieve_totals(request_data = {}) ⇒ Object



17
18
19
20
21
# File 'lib/helo/apis/statistics.rb', line 17

def retrieve_totals(request_data = {})
  request = StatisticsRetrieveTotalsRequest.new(request_data)
  response = @client.request(:get, "/activity/statistics/totals", params: request.to_params)
  StatisticsTotalsResponse.from_hash(response.body)
end