Class: Faraday::Builder::Handler

### Home Classes Methods

### In Files

- lib/faraday/builder.rb

### Parent

Object

### Methods

- ::new
- #==
- #build
- #inspect
- #klass

### 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::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::Builder
- Faraday::Builder::Handler
- Faraday::Builder::StackLocked
- Faraday::CompositeReadIO
- Faraday::Connection
- Faraday::Error
- Faraday::Error::ClientError
- Faraday::Error::ConnectionFailed
- Faraday::Error::MissingDependency
- Faraday::Error::ParsingError
- Faraday::Error::ResourceNotFound
- Faraday::Error::TimeoutError
- Faraday::Middleware
- Faraday::MiddlewareRegistry
- Faraday::Request
- Faraday::Request::Authorization
- Faraday::Request::BasicAuthentication
- Faraday::Request::Multipart
- Faraday::Request::Retry
- Faraday::Request::TokenAuthentication
- Faraday::Request::UrlEncoded
- Faraday::Response
- Faraday::Response::Logger
- Faraday::Response::Middleware
- Faraday::Response::RaiseError
- Faraday::Utils
- Faraday::Utils::Headers
- Faraday::Utils::ParamsHash
- Object

No matching classes.

# Faraday::Builder::Handler

borrowed from ActiveSupport::Dependencies::Reference & ActionDispatch::MiddlewareStack::Middleware

### Attributes

name[R]

### Public Class Methods

new(klass, *args, &block) click to toggle source

    # File lib/faraday/builder.rb, line 23
    def initialize(klass, *args, &block)
      @name = klass.to_s
      @@constants[@name] = klass if klass.respond_to?(:name)
      @args, @block = args, block
    end

### Public Instance Methods

==(other) click to toggle source

    # File lib/faraday/builder.rb, line 32
    def ==(other)
      if other.is_a? Handler
        self.name == other.name
      elsif other.respond_to? :name
        klass == other
      else
        @name == other.to_s
      end
    end

build(app) click to toggle source

    # File lib/faraday/builder.rb, line 42
    def build(app)
      klass.new(app, *@args, &@block)
    end

inspect() click to toggle source

    # File lib/faraday/builder.rb, line 30
    def inspect() @name end

klass() click to toggle source

    # File lib/faraday/builder.rb, line 29
    def klass() @@constants[@name] end

[Validate]

Generated with the Darkfish Rdoc Generator 2.