class Ondotori::WebAPI::Api::RateLimit

Attributes

limit[R]
remaining[R]
reset[R]

Public Class Methods

new(response) click to toggle source
# File lib/ondotori/webapi/api/rate_limit.rb, line 9
def initialize(response)
  @limit     = response.get_fields("X-RateLimit-Limit")
  @reset     = response.get_fields("X-RateLimit-Reset")
  @remaining = response.get_fields("X-RateLimit-Remaining")
end