Sha256: a23428ca8a28c684521ae47a96f496a184e4fbde3d4d4aecdcb91d32a14297a5

Contents?: true

Size: 331 Bytes

Versions: 7

Compression:

Stored size: 331 Bytes

Contents

# frozen_string_literal: true

module PlausibleApi 
  module Stats
    module Realtime
      class Visitors < PlausibleApi::Stats::Base
        def request_url_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

7 entries across 7 versions & 1 rubygems

Version Path
plausible_api-0.3 lib/plausible_api/stats/realtime/visitors.rb
plausible_api-0.2 lib/plausible_api/stats/realtime/visitors.rb
plausible_api-0.1.10 lib/plausible_api/stats/realtime/visitors.rb
plausible_api-0.1.9 lib/plausible_api/stats/realtime/visitors.rb
plausible_api-0.1.8 lib/plausible_api/stats/realtime/visitors.rb
plausible_api-0.1.7 lib/plausible_api/stats/realtime/visitors.rb
plausible_api-0.1.6 lib/plausible_api/stats/realtime/visitors.rb