class Seahorse::Client::Response
def on(range, &block)
-
(self)
-
Parameters:
-
status_code_range
(Range
) -- The block will be -
status_code
(Integer
) -- The block will be
Overloads:
-
on(status_code_range, &block)
-
on(status_code, &block)
def on(range, &block) response = self @context.http_response.on_success(range) do block.call(response) end self end