Sha256: 724834597dcb8f353440e1627e1f97ce99e46d099b077c075d8fe1bb107ee1ac

Contents?: true

Size: 206 Bytes

Versions: 3

Compression:

Stored size: 206 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

3 entries across 3 versions & 1 rubygems

Version Path
pirsch_api-0.0.4 lib/pirsch_api/resources/statistics/visitor.rb
pirsch_api-0.0.3 lib/pirsch_api/resources/statistics/visitor.rb
pirsch_api-0.0.2 lib/pirsch_api/resources/statistics/visitor.rb