From b5ef4469d51adf12515331834017417aced45b9f Mon Sep 17 00:00:00 2001 From: Steve Agalloco Date: Thu, 25 May 2017 13:45:54 -0400 Subject: [PATCH] fix warnings --- lib/instapaper/client.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/instapaper/client.rb b/lib/instapaper/client.rb index a451e86..6628ea8 100644 --- a/lib/instapaper/client.rb +++ b/lib/instapaper/client.rb @@ -16,9 +16,11 @@ module Instapaper # @param options [Hash] # @return [Instapaper::Client] def initialize(options = {}) - options.each do |key, value| - instance_variable_set("@#{key}", value) - end + @oauth_token = options[:oauth_token] + @oauth_token_secret = options[:oauth_token_secret] + @consumer_key = options[:consumer_key] + @consumer_secret = options[:consumer_secret] + @proxy = options[:proxy] yield(self) if block_given? end