class TheCity::RateLimit

Public Instance Methods

limit() click to toggle source

@return [Integer]

# File lib/the_city/rate_limit.rb, line 5
def limit
  limit = @attrs['x-rate-limit-limit']
  limit.to_i if limit
end
remaining() click to toggle source

@return [Integer]

# File lib/the_city/rate_limit.rb, line 11
def remaining
  remaining = @attrs['x-rate-limit-remaining']
  remaining.to_i if remaining
end