lib/pwush/client.rb in pwush-0.3.0 vs lib/pwush/client.rb in pwush-0.4.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require 'http' require 'pwush/api/messages' require 'pwush/api/devices' require 'pwush/api/applications' @@ -34,10 +36,10 @@ @config.logger.info( "Pushwoosh #{verb.upcase} #{url} BODY #{request.body.to_json}" ) - Http.timeout(@config.timeout).request(verb, url, json: request.body) + HTTP.timeout(@config.timeout).request(verb, url, json: request.body) end def build_request(payload = nil) Request.new(auth: @config.auth, app: @config.app, payload: payload) end