Class: FakeHTTP::Client
- Inherits:
-
Object
- Object
- FakeHTTP::Client
- Includes:
- HTTP::Chainable
- Defined in:
- lib/fake_http.rb
Instance Method Summary collapse
- #branch(options) ⇒ Object
-
#initialize(options, builder:) ⇒ Client
constructor
A new instance of Client.
- #request(*args) ⇒ Object
Constructor Details
#initialize(options, builder:) ⇒ Client
Returns a new instance of Client.
22 23 24 |
# File 'lib/fake_http.rb', line 22 def initialize(, builder:) @options, @builder = , builder end |
Instance Method Details
#branch(options) ⇒ Object
30 31 32 |
# File 'lib/fake_http.rb', line 30 def branch() self.class.new(@options.merge(), builder: @builder) end |
#request(*args) ⇒ Object
26 27 28 |
# File 'lib/fake_http.rb', line 26 def request(*args) @builder.request(*args) end |