Sha256: 4cbe0e33e82952baf2bf08243a0b0fb76d47f9e4dd74398ccb8d410afd144b31

Contents?: true

Size: 207 Bytes

Versions: 1

Compression:

Stored size: 207 Bytes

Contents

module PirschApi
  class VisitorResource < BaseResource
    def request_url
      "statistics/visitor"
    end

    def parse_response(body)
      JSON.parse(body)&.map{ |o| Visitor.new o }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pirsch_api-0.0.5 lib/pirsch_api/resources/statistics/visitor.rb