Sha256: a327e4d988b089583f742985d604d29108b531c308f7897b75766f024142eee6
Contents?: true
Size: 480 Bytes
Versions: 1
Compression:
Stored size: 480 Bytes
Contents
require 'pushbullet/http_exception' require 'pushbullet/parse_json' module Pushbullet module Connection private def connection @connection ||= Faraday.new(url: 'https://api.pushbullet.com/') do |f| f.request :basic_auth, api_key, '' f.request :multipart f.request :url_encoded f.response :logger f.use Pushbullet::ParseJSON f.use Pushbullet::HttpException f.adapter :net_http end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pushbullet-0.0.4 | lib/pushbullet/connection.rb |