Sha256: 8c441cd98c021ca0dd7f60f02e68131254294150697571d086b682ba886ca228

Contents?: true

Size: 201 Bytes

Versions: 1

Compression:

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

1 entries across 1 versions & 1 rubygems

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