Sha256: 5c34859bccc83423126f58a014894acaab3ca6abd583c9ca66e676dcc76f0baa

Contents?: true

Size: 225 Bytes

Versions: 2

Compression:

Stored size: 225 Bytes

Contents

module PirschApi
  class DurationPageResource < BaseResource
    def request_url
      "statistics/duration/page"
    end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pirsch_api-0.1.1 lib/pirsch_api/resources/statistics/duration_page.rb
pirsch_api-0.1.0 lib/pirsch_api/resources/statistics/duration_page.rb