Skip to content

Change retry_if args in block #7

@arturictus

Description

@arturictus

retry_if right now yield the args response, endpoint.

    retry_if do |response, endpoint|
      endpoint.status_code != 200
    end

Will be clearer to pass only the endpoint

    retry_if do |endpoint|
      endpoint.response.class # => Wrappi::Response
    end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions