Class: HTTP::Fake::Client

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Chainable
Defined in:
lib/http/fake/client.rb

Overview

Provides the primary client for dealing with fake requests and responses.

Instance Method Summary collapse

Constructor Details

#initialize(builder: Builder.new, requester: Requester, &block) ⇒ Client

Returns a new instance of Client.



14
15
16
17
18
# File 'lib/http/fake/client.rb', line 14

def initialize builder: Builder.new, requester: Requester, &block
  @builder = builder
  @requester = requester
  @builder.instance_eval(&block)
end