Class: BunBun::Client::Statistics

Inherits:
Namespace
  • Object
show all
Defined in:
lib/bunbun/client/statistics.rb

Instance Method Summary collapse

Methods inherited from Namespace

#initialize, #inspect

Constructor Details

This class inherits a constructor from BunBun::Client::Namespace

Instance Method Details

#get(date_from: nil, date_to: nil, pull_zone: nil, server_zone_id: nil, load_errors: nil, hourly: nil) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/bunbun/client/statistics.rb', line 4

def get(date_from: nil, date_to: nil, pull_zone: nil, server_zone_id: nil, load_errors: nil, hourly: nil)
  params = {
    dateFrom: date_from,
    dateTo: date_to,
    pullZone: pull_zone,
    serverZoneId: server_zone_id,
    loadErrors: load_errors,
    hourly: hourly
  }

  @client.get(BunBun::URI.join('/statistics', params))
end