Sha256: d5c0c0eb81ba947ccbd7ac96c0905ea2273f0383a43aadcfc3d384cf67295f61

Contents?: true

Size: 200 Bytes

Versions: 3

Compression:

Stored size: 200 Bytes

Contents

module PirschApi
  class EventResource < BaseResource
    def request_url
      "statistics/events"
    end
    def parse_response(body)
      JSON.parse(body).map{ |o| Event.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/event.rb
pirsch_api-0.0.3 lib/pirsch_api/resources/statistics/event.rb
pirsch_api-0.0.2 lib/pirsch_api/resources/statistics/event.rb