Skip to content

Commit b2e8439

Browse files
Update Using the Faraday Client section
1 parent ac139d7 commit b2e8439

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,14 +277,14 @@ The Faraday client is exposed and may be used or configured directly:
277277
require "seam"
278278
require "faraday"
279279

280-
seam = Seam.new
281-
282280
class MyMiddleware < Faraday::Middleware
283281
def on_complete(env)
284282
puts env.response.inspect
285283
end
286284
end
287285

286+
seam = Seam.new
287+
288288
seam.client.builder.use MyMiddleware
289289

290290
devices = seam.client.post("/devices/list").body["devices"]

0 commit comments

Comments
 (0)