fix warnings

This commit is contained in:
Steve Agalloco 2017-05-25 13:45:54 -04:00
parent d79456220e
commit b5ef4469d5
No known key found for this signature in database
GPG key ID: FDAF2BA50D34F744

View file

@ -16,9 +16,11 @@ module Instapaper
# @param options [Hash] # @param options [Hash]
# @return [Instapaper::Client] # @return [Instapaper::Client]
def initialize(options = {}) def initialize(options = {})
options.each do |key, value| @oauth_token = options[:oauth_token]
instance_variable_set("@#{key}", value) @oauth_token_secret = options[:oauth_token_secret]
end @consumer_key = options[:consumer_key]
@consumer_secret = options[:consumer_secret]
@proxy = options[:proxy]
yield(self) if block_given? yield(self) if block_given?
end end