Class: Gendered::RateLimitError
- Inherits:
-
GenderedError
- Object
- Gendered::RateLimitError
- Defined in:
- lib/gendered.rb
Instance Attribute Summary collapse
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
-
#remaining ⇒ Object
readonly
Returns the value of attribute remaining.
-
#reset ⇒ Object
readonly
Returns the value of attribute reset.
Instance Method Summary collapse
-
#initialize(message, limit, remaining, reset) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(message, limit, remaining, reset) ⇒ RateLimitError
15 16 17 18 19 20 |
# File 'lib/gendered.rb', line 15 def initialize(, limit, remaining, reset) super() @limit = limit @remaining = remaining @reset = reset end |
Instance Attribute Details
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
13 14 15 |
# File 'lib/gendered.rb', line 13 def limit @limit end |
#remaining ⇒ Object (readonly)
Returns the value of attribute remaining.
13 14 15 |
# File 'lib/gendered.rb', line 13 def remaining @remaining end |
#reset ⇒ Object (readonly)
Returns the value of attribute reset.
13 14 15 |
# File 'lib/gendered.rb', line 13 def reset @reset end |