class Fastly
def initialize(opts)
You only need to pass in C
api_key:: your Fastly api key
password:: your Fastly password
user:: your Fastly login
Create a new Fastly client. Options are
def initialize(opts) if opts[:api_key].nil? && (opts[:password].nil? || opts[:user].nil?) raise ArgumentError, "Required options missing. Please pass either ':api_key' or both ':user' and ':password'." end client(opts) self end