Class: Pin::RetryingClient

Inherits:
Client
  • Object
show all
Defined in:
lib/pin_up/retrying_client.rb

Instance Method Summary collapse

Methods inherited from Client

#initialize

Constructor Details

This class inherits a constructor from Pin::Client

Instance Method Details

#make_request(times: 3) ⇒ Object



5
6
7
8
9
10
# File 'lib/pin_up/retrying_client.rb', line 5

def make_request(*, times: 3)
  super
rescue
  retry if (times -= 1) > 0
  raise
end