Class: RateThrottleClient::Info

Inherits:
Object
  • Object
show all
Defined in:
lib/rate_throttle_client/info.rb

Overview

Class used for reporting

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#requestObject (readonly)

Returns the value of attribute request.



5
6
7
# File 'lib/rate_throttle_client/info.rb', line 5

def request
  @request
end

#sleep_forObject (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