Sha256: 937cdd962d15dae1cdf6bd949a385cfed4e59d6c0c32778b0dc343b280dee7cc

Contents?: true

Size: 334 Bytes

Versions: 3

Compression:

Stored size: 334 Bytes

Contents

# frozen_string_literal: true

# lib/stream_rate_limits.rb

module StreamChat
  class StreamRateLimits
    attr_reader :limit
    attr_reader :remaining
    attr_reader :reset

    def initialize(limit, remaining, reset)
      @limit = limit.to_i
      @remaining = remaining.to_i
      @reset = Time.at(reset.to_i)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stream-chat-ruby-2.20.0 lib/stream-chat/stream_rate_limits.rb
stream-chat-ruby-2.19.0 lib/stream-chat/stream_rate_limits.rb
stream-chat-ruby-2.18.0 lib/stream-chat/stream_rate_limits.rb