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

Class Method Summary collapse

Class Attribute Details

.access_tokenObject

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_refreshedObject

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_idObject

Returns the value of attribute app_id.



3
4
5
# File 'lib/baidu-netdisk.rb', line 3

def app_id
  @app_id
end

.app_keyObject

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_threadsObject



11
12
13
# File 'lib/baidu-netdisk.rb', line 11

def max_uploading_threads
  @max_uploading_threads || 1
end

.refresh_tokenObject

Returns the value of attribute refresh_token.



3
4
5
# File 'lib/baidu-netdisk.rb', line 3

def refresh_token
  @refresh_token
end

.secret_keyObject

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

Yields:

  • (_self)

Yield Parameters:

  • _self (BaiduNetDisk)

    the object that the method was called on



7
8
9
# File 'lib/baidu-netdisk.rb', line 7

def config
  yield self
end