README.md in cloudflare-4.0.1 vs README.md in cloudflare-4.1.0
- old
+ new
@@ -34,10 +34,10 @@
# Grab some details from somewhere:
email = ENV['CLOUDFLARE_EMAIL']
key = ENV['CLOUDFLARE_KEY']
-Cloudflare.connect(key: key, email: email) do
+Cloudflare.connect(key: key, email: email) do |connection|
# Get all available zones:
zones = connection.zones
# Get a specific zone:
zone = connection.zones.find_by_id("...")