Module: T411

Includes:
Api, Bookmarks, Torrents, Users
Defined in:
lib/t411.rb,
lib/t411/api.rb,
lib/t411/users.rb,
lib/t411/version.rb,
lib/t411/torrents.rb,
lib/t411/bookmarks.rb

Defined Under Namespace

Modules: Api, Bookmarks, Torrents, Users

Constant Summary collapse

VERSION =
'0.0.9'

Instance Attribute Summary

Attributes included from Api

#token

Class Method Summary collapse

Methods included from Bookmarks

delete, list, save

Methods included from Torrents

details, download, search

Methods included from Users

#details

Methods included from Api

connect, request_data, shared_token

Class Method Details

.authenticate(username, password) ⇒ Object



42
43
44
# File 'lib/t411.rb', line 42

def authenticate(username,password)
  T411::Api.connect(username,password)
end

.authenticated?Boolean

Returns:

  • (Boolean)


46
47
48
# File 'lib/t411.rb', line 46

def authenticated?
  T411::Api.shared_token ? true : false
end