Sha256: 35dbba6edd5df30ba7ddbd453aa5bc6563fb2415182d549a7d1caaa7791a80fd
Contents?: true
Size: 502 Bytes
Versions: 17
Compression:
Stored size: 502 Bytes
Contents
module PushbulletRuby module Request def get(path, parms = {}) request(:get, path, parms) end def post(path, payload) request(:post, path, payload) end def delete(path) request(:delete, path) end def request(method, path, params = {}) connection.send(method) do |request| request.url path request.params = params if method == :get request.body = params if method == :post end end end end
Version data entries
17 entries across 16 versions & 2 rubygems