Sha256: 8991e83545e5dc420565970d4c45b7d051a3e2663e940865f601f4f45a386c86
Contents?: true
Size: 379 Bytes
Versions: 6
Compression:
Stored size: 379 Bytes
Contents
# frozen_string_literal: true module PlausibleApi module Stats class Timeseries < Base def initialize(options = {}) super({ period: '30d' }.merge(options)) end def request_url_base "/api/v1/stats/timeseries?site_id=$SITE_ID" end def parse_response(body) JSON.parse(body)['results'] end end end end
Version data entries
6 entries across 6 versions & 1 rubygems