mirror of
https://github.com/samsonjs/instapaper.git
synced 2026-03-25 08:55:49 +00:00
fix warnings
This commit is contained in:
parent
d79456220e
commit
b5ef4469d5
1 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue