Module: Traktr
- Includes:
- HTTParty
- Defined in:
- lib/traktr.rb,
lib/traktr/show.rb,
lib/traktr/user.rb,
lib/traktr/movie.rb,
lib/traktr/search.rb,
lib/traktr/account.rb,
lib/traktr/version.rb,
lib/traktr/show/season.rb,
lib/traktr/show/episode.rb,
lib/traktr/user/library.rb,
lib/traktr/user/network.rb,
lib/traktr/user/ratings.rb,
lib/traktr/user/calendar.rb,
lib/traktr/user/progress.rb,
lib/traktr/authentication.rb,
lib/traktr/user/watchlist.rb,
lib/traktr/user/library/shows.rb,
lib/traktr/user/library/movies.rb
Defined Under Namespace
Modules: Account, Movie, Search, Show, User
Constant Summary
collapse
- VERSION =
"0.1.0"
Class Method Summary
collapse
Class Method Details
.api_key ⇒ Object
5
6
7
|
# File 'lib/traktr/authentication.rb', line 5
def api_key
@api_key ||= ""
end
|
.api_key=(api_key) ⇒ Object
9
10
11
|
# File 'lib/traktr/authentication.rb', line 9
def api_key=(api_key)
@api_key = api_key
end
|
.password ⇒ Object
21
22
23
|
# File 'lib/traktr/authentication.rb', line 21
def password
@password ||= ""
end
|
.password=(password) ⇒ Object
25
26
27
|
# File 'lib/traktr/authentication.rb', line 25
def password=(password)
@password = password == '' ? '' : Digest::SHA1.hexdigest(password)
end
|
.username ⇒ Object
13
14
15
|
# File 'lib/traktr/authentication.rb', line 13
def username
@username ||= ""
end
|
.username=(username) ⇒ Object
17
18
19
|
# File 'lib/traktr/authentication.rb', line 17
def username=(username)
@username = username
end
|