Class: FakeHTTP

Inherits:
Object
  • Object
show all
Includes:
HTTP::Chainable
Defined in:
lib/fake_http.rb,
lib/fake_http/identity.rb

Defined Under Namespace

Modules: Identity Classes: Builder, Client, Responder

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ FakeHTTP

Returns a new instance of FakeHTTP.



8
9
10
11
# File 'lib/fake_http.rb', line 8

def initialize(&block)
  @builder = Builder.new
  @builder.instance_eval(&block)
end