lib/faraday/pocket_oauth.rb in pocket-ruby-0.0.9 vs lib/faraday/pocket_oauth.rb in pocket-ruby-0.1.0

- old
+ new

@@ -1,22 +1,22 @@ -require 'faraday' +require "faraday" # @private module FaradayMiddleware # @private class PocketOAuth < Faraday::Middleware def call(env) env[:body] = {} if env[:body].nil? - env[:body] = env[:body].merge(:consumer_key => @consumer_key) + env[:body] = env[:body].merge(consumer_key: @consumer_key) if @access_token - env[:body] = env[:body].merge(:access_token => @access_token) + env[:body] = env[:body].merge(access_token: @access_token) end @app.call env end - def initialize(app, consumer_key, access_token=nil) + def initialize(app, consumer_key, access_token = nil) @app = app @consumer_key = consumer_key @access_token = access_token end end