module Cloudflare
Released under the MIT License. Copyright, 2018-2024, by Samuel Williams. Copyright, 2019, by Rob Widmer.
Released under the MIT License. Copyright, 2014-2016, by Marcin Prokop. Copyright, 2014-2024, by Samuel Williams. Copyright, 2015, by Kyle Corbitt. Copyright, 2018, by Leonhardt Wille. Copyright, 2018, by Casey Lopez.
Constants
- VERSION
Public Class Methods
connect(*arguments, **auth_info) { |connection| ... }
click to toggle source
# File lib/cloudflare.rb, line 16 def self.connect(*arguments, **auth_info) connection = Connection.open(*arguments) if !auth_info.empty? connection = connection.authenticated(**auth_info) end return connection unless block_given? Sync do yield connection ensure connection.close end end