Module: Github::RateLimit

Included in:
API
Defined in:
lib/github_api2/rate_limit.rb

Instance Method Summary collapse

Instance Method Details

#ratelimit(*args) ⇒ Object



6
7
8
9
10
# File 'lib/github_api2/rate_limit.rb', line 6

def ratelimit(*args)
  arguments(args)

  get_request("/rate_limit", arguments.params).rate.limit
end

#ratelimit_remaining(*args) ⇒ Object



12
13
14
15
16
# File 'lib/github_api2/rate_limit.rb', line 12

def ratelimit_remaining(*args)
  arguments(args)

  get_request("/rate_limit", arguments.params).rate.remaining
end

#ratelimit_reset(*args) ⇒ Object



18
19
20
21
22
# File 'lib/github_api2/rate_limit.rb', line 18

def ratelimit_reset(*args)
  arguments(args)

  get_request("/rate_limit", arguments.params).rate.reset
end