Class: CloudDoor::CloudDoor
- Inherits:
-
Object
- Object
- CloudDoor::CloudDoor
- Defined in:
- lib/cloud_door.rb
Instance Attribute Summary collapse
-
#storage ⇒ Object
Returns the value of attribute storage.
Instance Method Summary collapse
- #assign_upload_file_name(file_name) ⇒ Object
- #change_directory(file_name) ⇒ Object
- #configuration_init? ⇒ Boolean
- #delete_file(file_name) ⇒ Object
- #download_file(file_name) ⇒ Object
- #file?(file_name) ⇒ Boolean
- #file_exist?(file_name) ⇒ Boolean
- #has_file?(file_name) ⇒ Boolean
-
#initialize(storage_klass, session_id = nil) ⇒ CloudDoor
constructor
A new instance of CloudDoor.
- #isset_account? ⇒ Boolean
- #load_token ⇒ Object
- #login(login_account, login_password) ⇒ Object
- #make_directory(mkdir_name) ⇒ Object
- #refresh_token ⇒ Object
- #show_account ⇒ Object
- #show_configuration ⇒ Object
- #show_current_directory ⇒ Object
- #show_files(file_name = nil) ⇒ Object
- #show_property(file_name) ⇒ Object
- #show_storage_name ⇒ Object
- #show_user ⇒ Object
- #update_account(accounts) ⇒ Object
- #update_configuration(configs) ⇒ Object
- #upload_file(file_name) ⇒ Object
Constructor Details
#initialize(storage_klass, session_id = nil) ⇒ CloudDoor
Returns a new instance of CloudDoor.
36 37 38 |
# File 'lib/cloud_door.rb', line 36 def initialize(storage_klass, session_id = nil) @storage = storage_klass.new(session_id) end |
Instance Attribute Details
#storage ⇒ Object
Returns the value of attribute storage.
34 35 36 |
# File 'lib/cloud_door.rb', line 34 def storage @storage end |
Instance Method Details
#assign_upload_file_name(file_name) ⇒ Object
128 129 130 |
# File 'lib/cloud_door.rb', line 128 def assign_upload_file_name(file_name) @storage.assign_upload_file_name(file_name) end |
#change_directory(file_name) ⇒ Object
88 89 90 |
# File 'lib/cloud_door.rb', line 88 def change_directory(file_name) @storage.change_directory(file_name) end |
#configuration_init? ⇒ Boolean
64 65 66 |
# File 'lib/cloud_door.rb', line 64 def configuration_init? @storage.configuration_init? end |
#delete_file(file_name) ⇒ Object
100 101 102 |
# File 'lib/cloud_door.rb', line 100 def delete_file(file_name) @storage.delete_file(file_name) end |
#download_file(file_name) ⇒ Object
104 105 106 |
# File 'lib/cloud_door.rb', line 104 def download_file(file_name) @storage.download_file(file_name) end |
#file?(file_name) ⇒ Boolean
124 125 126 |
# File 'lib/cloud_door.rb', line 124 def file?(file_name) @storage.file?(file_name) end |
#file_exist?(file_name) ⇒ Boolean
116 117 118 |
# File 'lib/cloud_door.rb', line 116 def file_exist?(file_name) @storage.file_exist?(file_name) end |
#has_file?(file_name) ⇒ Boolean
120 121 122 |
# File 'lib/cloud_door.rb', line 120 def has_file?(file_name) @storage.has_file?(file_name) end |
#isset_account? ⇒ Boolean
76 77 78 |
# File 'lib/cloud_door.rb', line 76 def isset_account? @storage.isset_account? end |
#load_token ⇒ Object
44 45 46 |
# File 'lib/cloud_door.rb', line 44 def load_token @storage.load_token end |
#login(login_account, login_password) ⇒ Object
40 41 42 |
# File 'lib/cloud_door.rb', line 40 def login(login_account, login_password) @storage.login(login_account, login_password) end |
#make_directory(mkdir_name) ⇒ Object
112 113 114 |
# File 'lib/cloud_door.rb', line 112 def make_directory(mkdir_name) @storage.make_directory(mkdir_name) end |
#refresh_token ⇒ Object
48 49 50 |
# File 'lib/cloud_door.rb', line 48 def refresh_token @storage.refresh_token end |
#show_account ⇒ Object
68 69 70 |
# File 'lib/cloud_door.rb', line 68 def show_account @storage.show_account end |
#show_configuration ⇒ Object
56 57 58 |
# File 'lib/cloud_door.rb', line 56 def show_configuration @storage.show_configuration end |
#show_current_directory ⇒ Object
92 93 94 |
# File 'lib/cloud_door.rb', line 92 def show_current_directory @storage.show_current_directory end |
#show_files(file_name = nil) ⇒ Object
84 85 86 |
# File 'lib/cloud_door.rb', line 84 def show_files(file_name = nil) @storage.show_files(file_name) end |
#show_property(file_name) ⇒ Object
96 97 98 |
# File 'lib/cloud_door.rb', line 96 def show_property(file_name) @storage.show_property(file_name) end |
#show_storage_name ⇒ Object
52 53 54 |
# File 'lib/cloud_door.rb', line 52 def show_storage_name @storage.show_storage_name end |
#show_user ⇒ Object
80 81 82 |
# File 'lib/cloud_door.rb', line 80 def show_user @storage.show_user end |
#update_account(accounts) ⇒ Object
72 73 74 |
# File 'lib/cloud_door.rb', line 72 def update_account(accounts) @storage.update_account(accounts) end |
#update_configuration(configs) ⇒ Object
60 61 62 |
# File 'lib/cloud_door.rb', line 60 def update_configuration(configs) @storage.update_configuration(configs) end |
#upload_file(file_name) ⇒ Object
108 109 110 |
# File 'lib/cloud_door.rb', line 108 def upload_file(file_name) @storage.upload_file(file_name) end |