Class: Broadcast::RateLimit

Inherits:
Struct
  • Object
show all
Defined in:
lib/broadcast/response.rb

Overview

Parsed X-RateLimit-* response headers. reset is the time the current window rolls over, not a duration.

Instance Attribute Summary collapse

Instance Attribute Details

#limitObject

Returns the value of attribute limit

Returns:

  • (Object)

    the current value of limit



21
22
23
# File 'lib/broadcast/response.rb', line 21

def limit
  @limit
end

#remainingObject

Returns the value of attribute remaining

Returns:

  • (Object)

    the current value of remaining



21
22
23
# File 'lib/broadcast/response.rb', line 21

def remaining
  @remaining
end

#resetObject

Returns the value of attribute reset

Returns:

  • (Object)

    the current value of reset



21
22
23
# File 'lib/broadcast/response.rb', line 21

def reset
  @reset
end