Module: BaiduNetDisk
- Defined in:
- lib/baidu-netdisk.rb,
lib/baidu-netdisk/version.rb,
lib/baidu-netdisk/exception.rb
Defined Under Namespace
Modules: Exception Classes: Auth, Uploader
Constant Summary collapse
- VERSION =
'0.1.1'
Class Attribute Summary collapse
-
.access_token ⇒ Object
Returns the value of attribute access_token.
-
.after_token_refreshed ⇒ Object
Returns the value of attribute after_token_refreshed.
-
.app_id ⇒ Object
Returns the value of attribute app_id.
-
.app_key ⇒ Object
Returns the value of attribute app_key.
- .max_uploading_threads ⇒ Object
-
.refresh_token ⇒ Object
Returns the value of attribute refresh_token.
-
.secret_key ⇒ Object
Returns the value of attribute secret_key.
Class Method Summary collapse
Class Attribute Details
.access_token ⇒ Object
Returns the value of attribute access_token.
3 4 5 |
# File 'lib/baidu-netdisk.rb', line 3 def access_token @access_token end |
.after_token_refreshed ⇒ Object
Returns the value of attribute after_token_refreshed.
3 4 5 |
# File 'lib/baidu-netdisk.rb', line 3 def after_token_refreshed @after_token_refreshed end |
.app_id ⇒ Object
Returns the value of attribute app_id.
3 4 5 |
# File 'lib/baidu-netdisk.rb', line 3 def app_id @app_id end |
.app_key ⇒ Object
Returns the value of attribute app_key.
3 4 5 |
# File 'lib/baidu-netdisk.rb', line 3 def app_key @app_key end |
.max_uploading_threads ⇒ Object
11 12 13 |
# File 'lib/baidu-netdisk.rb', line 11 def max_uploading_threads @max_uploading_threads || 1 end |
.refresh_token ⇒ Object
Returns the value of attribute refresh_token.
3 4 5 |
# File 'lib/baidu-netdisk.rb', line 3 def refresh_token @refresh_token end |
.secret_key ⇒ Object
Returns the value of attribute secret_key.
3 4 5 |
# File 'lib/baidu-netdisk.rb', line 3 def secret_key @secret_key end |
Class Method Details
.config {|_self| ... } ⇒ Object
7 8 9 |
# File 'lib/baidu-netdisk.rb', line 7 def config yield self end |