Sha256: 47b35a5045c5a1bd3dc46ddee09ae76a1a14b155dd6afd87211c325ad7c31289

Contents?: true

Size: 169 Bytes

Versions: 2

Compression:

Stored size: 169 Bytes

Contents

require 'json'

module Pushbullet
  class ParseJSON < Faraday::Response::Middleware
    def on_complete(env)
      env[:body] = JSON.parse(env[:body])
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pushbullet-0.0.4 lib/pushbullet/parse_json.rb
pushbullet-0.0.2 lib/pushbullet/parse_json.rb