Class "rateLimitInfo": A class to represent rate limit information
的类“rateLimitInfo”:A类表示速率限制信息
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This class provides a model representing rate limit information from the Twitter API
这个类提供了一个模型表示速率限制从Twitter API的信息
Details
详细信息----------Details----------
The rateLimitInfo class is implemented as a reference class. The only S4 method provided is a show method. An instance of a generator for this class is provided as a convenience to the user as it is configured to handle most standard cases. To access this generator, use the object rateLimitInfoFactory. Accessor set & get methods are provided for every field using reference class $accessors() methodology (see setRefClass for more details). As an example, the hourlyLimit field could be accessed using object$getHourlyLimit() and object$setHourlyLImit().
rateLimitInfo作为参考类类实现。只有S4提供的方法是一个show方法。这个类的一个实例生成器,用于提供给用户一个方便,因为它被配置为处理最标准的情况下。要访问此生成器,使用对象rateLimitInfoFactory。访问器组和get方法为各个领域提供使用引用类$accessors()方法(见setRefClass为更多细节)。作为一个例子,hourlyLimit域可以访问使用object$getHourlyLimit()和object$setHourlyLImit()。
字段----------Fields----------
remainingHits: Number of remaining API calls before rate limit
remainingHits:之前剩余的API调用数率限制
resetTimeInSeconds: Length of time before the rate limit counter resets
resetTimeInSeconds的速率限制计数器复位前的时间长度
hourlyLimt: Number of API calls allowed per hour
hourlyLimt:每小时允许的API调用数
resetTime: Date of the rate limit reset
resetTime:日期的速率限制复位
方法----------Methods----------
show signature(object = "rateLimitInfo"): displays the remaining hits for this address
显示signature(object = "rateLimitInfo"):显示剩余点击此地址