Class: Faraday::Request::Retry::Options

### Home Classes Methods

### In Files

- lib/faraday/request/retry.rb

### Parent

Faraday::Options.new(:max, :interval, :interval_randomness, :backoff_factor, :exceptions, :methods, :retry_if)

### Methods

- ::from
- #backoff_factor
- #exceptions
- #interval
- #interval_randomness
- #max
- #methods
- #retry_if

### Class/Module Index

Quicksearch

- Faraday
- Faraday::Adapter
- Faraday::Adapter::EMHttp
- Faraday::Adapter::EMHttp::Manager
- Faraday::Adapter::EMHttp::Options
- Faraday::Adapter::EMSynchrony
- Faraday::Adapter::EMSynchrony::ParallelManager
- Faraday::Adapter::Excon
- Faraday::Adapter::HTTPClient
- Faraday::Adapter::NetHttp
- Faraday::Adapter::NetHttpPersistent
- Faraday::Adapter::Parallelism
- Faraday::Adapter::Patron
- Faraday::Adapter::Rack
- Faraday::Adapter::Test
- Faraday::Adapter::Test::Stub
- Faraday::Adapter::Test::Stubs
- Faraday::Adapter::Test::Stubs::NotFound
- Faraday::Adapter::Typhoeus
- Faraday::AutoloadHelper
- Faraday::ClientError
- Faraday::CompositeReadIO
- Faraday::Connection
- Faraday::ConnectionFailed
- Faraday::ConnectionOptions
- Faraday::Env
- Faraday::Error
- Faraday::FlatParamsEncoder
- Faraday::Middleware
- Faraday::MiddlewareRegistry
- Faraday::MissingDependency
- Faraday::NestedParamsEncoder
- Faraday::Options
- Faraday::ParsingError
- Faraday::ProxyOptions
- Faraday::RackBuilder
- Faraday::RackBuilder::Handler
- Faraday::RackBuilder::StackLocked
- Faraday::Request
- Faraday::Request::Authorization
- Faraday::Request::BasicAuthentication
- Faraday::Request::Instrumentation
- Faraday::Request::Instrumentation::Options
- Faraday::Request::Multipart
- Faraday::Request::Retry
- Faraday::Request::Retry::Options
- Faraday::Request::TokenAuthentication
- Faraday::Request::UrlEncoded
- Faraday::RequestOptions
- Faraday::ResourceNotFound
- Faraday::Response
- Faraday::Response::Logger
- Faraday::Response::Middleware
- Faraday::Response::RaiseError
- Faraday::SSLError
- Faraday::SSLOptions
- Faraday::TimeoutError
- Faraday::Utils
- Faraday::Utils::Headers
- Faraday::Utils::ParamsHash
- EmHttpSslPatch
- Object

No matching classes.

# Faraday::Request::Retry::Options

### Constants

DEFAULT_CHECK

### Public Class Methods

from(value) click to toggle source

    # File lib/faraday/request/retry.rb, line 29
    def self.from(value)
      if Fixnum === value
        new(value)
      else
        super(value)
      end
    end

### Public Instance Methods

backoff_factor() click to toggle source

    # File lib/faraday/request/retry.rb, line 49
    def backoff_factor
      (self[:backoff_factor] ||= 1).to_f
    end

exceptions() click to toggle source

    # File lib/faraday/request/retry.rb, line 53
    def exceptions
      Array(self[:exceptions] ||= [Errno::ETIMEDOUT, 'Timeout::Error',
                                   Error::TimeoutError])
    end

interval() click to toggle source

    # File lib/faraday/request/retry.rb, line 41
    def interval
      (self[:interval] ||= 0).to_f
    end

interval_randomness() click to toggle source

    # File lib/faraday/request/retry.rb, line 45
    def interval_randomness
      (self[:interval_randomness] ||= 0).to_i
    end

max() click to toggle source

    # File lib/faraday/request/retry.rb, line 37
    def max
      (self[:max] ||= 2).to_i
    end

methods() click to toggle source

    # File lib/faraday/request/retry.rb, line 58
    def methods
      Array(self[:methods] ||= IDEMPOTENT_METHODS)
    end

retry_if() click to toggle source

    # File lib/faraday/request/retry.rb, line 62
    def retry_if
      self[:retry_if] ||= DEFAULT_CHECK
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.