Sha256: 627331bf1a1abf0f983e1ed8746625caccd909cef6f96a894b87cc2c3cf9a187

Contents?: true

Size: 332 Bytes

Versions: 3

Compression:

Stored size: 332 Bytes

Contents

# frozen_string_literal: true

module PlausibleApi
  module Stats
    module Realtime
      class Visitors < PlausibleApi::Stats::Base
        def request_path_base
          "/api/v1/stats/realtime/visitors?site_id=$SITE_ID"
        end

        def parse_response(body)
          body.to_i
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
plausible_api-0.4.2 lib/plausible_api/stats/realtime/visitors.rb
plausible_api-0.4.1 lib/plausible_api/stats/realtime/visitors.rb
plausible_api-0.4 lib/plausible_api/stats/realtime/visitors.rb