lib/fastly.rb in fastly-2.5.3 vs lib/fastly.rb in fastly-3.0.0

- old
+ new

@@ -53,11 +53,11 @@ # # You only need to pass in C<api_key> OR C<user> and C<password>. # # Some methods require full username and password rather than just auth token. 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'." + if opts[:api_key].nil? + raise ArgumentError, "Required option missing. Please pass ':api_key'." end client(opts) self end