Class: Mediafire::Client

Inherits:
Object
  • Object
show all
Includes:
API
Defined in:
lib/mediafire/client.rb

Constant Summary

Constants included from Connection

Mediafire::Connection::ENDPOINT

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from API

#create_folder, #delete, #description, #download, #download_image, #downloads, #dropbox_setup, #dropbox_setup_option, #dropbox_upload, #file_list, #folder_list, #image_rotation, #is_loggedin?, #list, #login, #move, #password, #rename, #revision, #save_file_to_my_account, #toggle_acl, #update, #upload

Methods included from Connection

#get, #has_multipart?, #post, #request, #upload_size

Constructor Details

#initializeClient

Returns a new instance of Client.



8
9
10
11
12
13
14
15
16
17
# File 'lib/mediafire/client.rb', line 8

def initialize()
  @loggedin = false
  @cookie = {}
  @s_queue = Queue.new
  @r_queue = Queue.new

  @root_folder = nil

  toppage
end

Instance Attribute Details

#datasObject

Returns the value of attribute datas.



6
7
8
# File 'lib/mediafire/client.rb', line 6

def datas
  @datas
end

#root_folderObject

Returns the value of attribute root_folder.



6
7
8
# File 'lib/mediafire/client.rb', line 6

def root_folder
  @root_folder
end