Sha256: d27148cda96a85d095d9e88b84332250bb05856e72232fc6bed6e5e1dda5cbaa

Contents?: true

Size: 234 Bytes

Versions: 2

Compression:

Stored size: 234 Bytes

Contents

module PirschApi
  class DurationSessionResource < BaseResource
    def request_url
      "statistics/duration/session"
    end

    def parse_response(body)
      JSON.parse(body)&.map { |o| DurationSession.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_session.rb
pirsch_api-0.1.0 lib/pirsch_api/resources/statistics/duration_session.rb