Class: CloudDoor::CloudDoor

Inherits:
Object
  • Object
show all
Defined in:
lib/cloud_door.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#storageObject

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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (Boolean)


76
77
78
# File 'lib/cloud_door.rb', line 76

def isset_account?
  @storage.isset_account?
end

#load_tokenObject



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 (, )
  @storage.(, )
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_tokenObject



48
49
50
# File 'lib/cloud_door.rb', line 48

def refresh_token
  @storage.refresh_token
end

#show_accountObject



68
69
70
# File 'lib/cloud_door.rb', line 68

def 
  @storage.
end

#show_configurationObject



56
57
58
# File 'lib/cloud_door.rb', line 56

def show_configuration
  @storage.show_configuration
end

#show_current_directoryObject



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_nameObject



52
53
54
# File 'lib/cloud_door.rb', line 52

def show_storage_name
  @storage.show_storage_name
end

#show_userObject



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 (accounts)
  @storage.(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