lib/instapaper/client.rb in instapaper-1.0.0 vs lib/instapaper/client.rb in instapaper-1.0.1
- old
+ new
@@ -14,12 +14,14 @@
# Initializes a new Client object
#
# @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
# @return [String]
def user_agent