Exception: Redd::Error::RateLimited
- Inherits:
-
Redd::Error
- Object
- StandardError
- Redd::Error
- Redd::Error::RateLimited
- Defined in:
- lib/redd/error.rb
Instance Attribute Summary collapse
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Attributes inherited from Redd::Error
Instance Method Summary collapse
-
#initialize(env, time) ⇒ RateLimited
constructor
A new instance of RateLimited.
Methods inherited from Redd::Error
Constructor Details
#initialize(env, time) ⇒ RateLimited
Returns a new instance of RateLimited.
95 96 97 98 99 100 |
# File 'lib/redd/error.rb', line 95 def initialize(env, time) @code = env.status @headers = env.response_headers @body = env.body @time = time end |
Instance Attribute Details
#time ⇒ Object (readonly)
Returns the value of attribute time.
93 94 95 |
# File 'lib/redd/error.rb', line 93 def time @time end |