struct Octokit::RateLimit

Overview

Class for API Rate Limit info

See Also:

Defined in:

octokit/rate_limit.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(limit : Int32 | Nil = nil, remaining : Int32 | Nil = nil, resets_at : Time | Nil = nil, resets_in : Int32 | Nil = nil) #

[View source]

Class Method Detail

def self.from_response(response) #

Get rate limit info from HTTP response


[View source]

Instance Method Detail

def limit : Int32 | Nil #

[View source]
def limit=(limit : Int32 | Nil) #

[View source]
def remaining : Int32 | Nil #

[View source]
def remaining=(remaining : Int32 | Nil) #

[View source]
def resets_at : Time | Nil #

[View source]
def resets_at=(resets_at : Time | Nil) #

[View source]
def resets_in : Int64 | Nil #

[View source]
def resets_in=(resets_in : Int64 | Nil) #

[View source]