Sha256: fcc9817e48384654633a96a0f7c83a08459d8ef036ebd05a13ee96774a1cd1c4
Contents?: true
Size: 396 Bytes
Versions: 1
Compression:
Stored size: 396 Bytes
Contents
# frozen_string_literal: true module PlausibleApi module Stats class Breakdown < Base def initialize(options = {}) super({ period: '30d', property: 'event:page' }.merge(options)) end def request_url_base "/api/v1/stats/breakdown?site_id=$SITE_ID" end def parse_response(body) JSON.parse(body)['results'] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
plausible_api-0.3 | lib/plausible_api/stats/breakdown.rb |