Class: Gendered::RateLimitError

Inherits:
GenderedError
  • Object
show all
Defined in:
lib/gendered.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, limit, remaining, reset) ⇒ RateLimitError



15
16
17
18
19
20
# File 'lib/gendered.rb', line 15

def initialize(message, limit, remaining, reset)
  super(message)
  @limit = limit
  @remaining = remaining
  @reset = reset
end

Instance Attribute Details

#limitObject (readonly)

Returns the value of attribute limit.



13
14
15
# File 'lib/gendered.rb', line 13

def limit
  @limit
end

#remainingObject (readonly)

Returns the value of attribute remaining.



13
14
15
# File 'lib/gendered.rb', line 13

def remaining
  @remaining
end

#resetObject (readonly)

Returns the value of attribute reset.



13
14
15
# File 'lib/gendered.rb', line 13

def reset
  @reset
end