module GemLookup::RateLimit

Constants

FREQUENCY_INTERVAL_IN_SECONDS

@return [Numeric] the frequency interval, in seconds.

MAX_REQUESTS_PER_INTERVAL

@return [Numeric] the max requests that can be made per interval.

RATE_LIMIT_DOCUMENTATION_URL

@return [String] the url that documents the rate limit

Public Class Methods

documentation_url() click to toggle source

Calls RATE_LIMIT_DOCUMENTATION_URL. @return [String] the url that documents the rate limit.

# File lib/gem_lookup/rate_limit.rb, line 29
def documentation_url
  RATE_LIMIT_DOCUMENTATION_URL
end
interval() click to toggle source

Calls FREQUENCY_INTERVAL_IN_SECONDS @return [Numeric] the frequency interval, in seconds.

# File lib/gem_lookup/rate_limit.rb, line 23
def interval
  FREQUENCY_INTERVAL_IN_SECONDS
end
number() click to toggle source

Calls MAX_REQUESTS_PER_SECOND. @return [Numeric] the max requests that can be made per interval.

# File lib/gem_lookup/rate_limit.rb, line 17
def number
  MAX_REQUESTS_PER_INTERVAL
end