class Smtp2go::RateLimit

Rate limiting class to be attached to response

Attributes

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

Public Class Methods

new(headers) click to toggle source
# File lib/smtp2go/core.rb, line 75
def initialize(headers)
  @limit = headers['x-ratelimit-limit']
  @remaining = headers['x-ratelimit-remaining']
  @reset = headers['x-ratelimit-reset']
end