Sha256: 19f2b2d9e8ae5b42037b49b95a1aeb64e61f12b13b59db2d191914d32f2bee6c

Contents?: true

Size: 349 Bytes

Versions: 5

Compression:

Stored size: 349 Bytes

Contents

# frozen_string_literal: true

module Strava
  module Web
    class ApiResponse
      attr_accessor :response, :ratelimit

      #
      # @param [Faraday::Response] http_response
      #
      def initialize(http_response)
        @response = http_response
        @ratelimit = Strava::Api::Ratelimit.new(http_response)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
strava-ruby-client-2.2.0 lib/strava/web/api_response.rb
strava-ruby-client-2.1.0 lib/strava/web/api_response.rb
strava-ruby-client-2.0.0 lib/strava/web/api_response.rb
strava-ruby-client-1.1.0 lib/strava/web/api_response.rb
strava-ruby-client-1.0.1 lib/strava/web/api_response.rb