Class: RateThrottleClient::Info
- Inherits:
-
Object
- Object
- RateThrottleClient::Info
- Defined in:
- lib/rate_throttle_client/info.rb
Overview
Class used for reporting
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#sleep_for ⇒ Object
readonly
Returns the value of attribute sleep_for.
Instance Method Summary collapse
-
#initialize(sleep_for:, request:) ⇒ Info
constructor
A new instance of Info.
Constructor Details
#initialize(sleep_for:, request:) ⇒ Info
Returns a new instance of Info.
7 8 9 10 |
# File 'lib/rate_throttle_client/info.rb', line 7 def initialize(sleep_for: , request: ) @sleep_for = sleep_for @request = request end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
5 6 7 |
# File 'lib/rate_throttle_client/info.rb', line 5 def request @request end |
#sleep_for ⇒ Object (readonly)
Returns the value of attribute sleep_for.
5 6 7 |
# File 'lib/rate_throttle_client/info.rb', line 5 def sleep_for @sleep_for end |