evernote_oauth 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/evernote_oauth/client.rb +4 -4
- data/lib/evernote_oauth/version.rb +1 -1
- metadata +1 -1
@@ -10,10 +10,10 @@ module EvernoteOAuth
|
|
10
10
|
@sandbox = config['sandbox'] ? true : false
|
11
11
|
end
|
12
12
|
|
13
|
-
@consumer_key
|
14
|
-
@consumer_secret
|
15
|
-
@sandbox =
|
16
|
-
@sandbox =
|
13
|
+
@consumer_key = options[:consumer_key] || @consumer_key
|
14
|
+
@consumer_secret = options[:consumer_secret] || @consumer_secret
|
15
|
+
@sandbox = true if @sandbox == nil
|
16
|
+
@sandbox = (options[:sandbox] == nil ? @sandbox : options[:sandbox])
|
17
17
|
@token = options[:token]
|
18
18
|
@secret = options[:secret]
|
19
19
|
end
|