lib/uptimerobot/client.rb in uptimerobot-0.1.1 vs lib/uptimerobot/client.rb in uptimerobot-0.1.2
- old
+ new
@@ -19,10 +19,10 @@
]
def initialize(options)
@apiKey = options.delete(:apiKey)
- raise ':apiKey is required' unless @apiKey
+ raise ArgumentError, ':apiKey is required' unless @apiKey
options[:url] ||= ENDPOINT
@conn = Faraday.new(options) do |faraday|
faraday.request :url_encoded