Class: Traktr::User
- Inherits:
-
Endpoint
show all
- Defined in:
- lib/traktr/user.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/user/watchlist.rb,
lib/traktr/user/library/shows.rb,
lib/traktr/user/library/movies.rb
Defined Under Namespace
Classes: Calendar, Library, Network, Progress, Ratings, Watchlist
Instance Method Summary
collapse
Methods inherited from Endpoint
#initialize
Instance Method Details
#calendar ⇒ Object
28
29
30
|
# File 'lib/traktr/user.rb', line 28
def calendar
@calendar ||= Traktr::User::Calendar.new(@client)
end
|
#lastactivity(user = @client.username) ⇒ Object
3
4
5
|
# File 'lib/traktr/user.rb', line 3
def lastactivity(user = @client.username)
parse_response self.class.get("/" + File.join("lastactivity.json", @client.api_key, user), :basic_auth => @auth)
end
|
#library ⇒ Object
32
33
34
|
# File 'lib/traktr/user.rb', line 32
def library
@library ||= Traktr::User::Library.new(@client)
end
|
#list(slug, user = @client.username) ⇒ Object
7
8
9
|
# File 'lib/traktr/user.rb', line 7
def list(slug, user = @client.username)
parse_response self.class.get("/" + File.join("list.json", @client.api_key, user, slug), :basic_auth => @auth)
end
|
#lists(user = @client.username) ⇒ Object
11
12
13
|
# File 'lib/traktr/user.rb', line 11
def lists(user = @client.username)
parse_response self.class.get("/" + File.join("lists.json", @client.api_key, user), :basic_auth => @auth)
end
|
#network ⇒ Object
36
37
38
|
# File 'lib/traktr/user.rb', line 36
def network
@network ||= Traktr::User::Network.new(@client)
end
|
#profile(user = @client.username) ⇒ Object
15
16
17
|
# File 'lib/traktr/user.rb', line 15
def profile(user = @client.username)
parse_response self.class.get("/" + File.join("profile.json", @client.api_key, user), :basic_auth => @auth)
end
|
#progress ⇒ Object
40
41
42
|
# File 'lib/traktr/user.rb', line 40
def progress
@progress ||= Traktr::User::Progress.new(@client)
end
|
#ratings ⇒ Object
44
45
46
|
# File 'lib/traktr/user.rb', line 44
def ratings
@ratings ||= Traktr::User::Ratings.new(@client)
end
|
#watching(user = @client.username) ⇒ Object
19
20
21
22
23
24
25
26
|
# File 'lib/traktr/user.rb', line 19
def watching(user = @client.username)
parse_response self.class.get("/" + File.join("watching.json", @client.api_key, user), :basic_auth => @auth)
end
|
#watchlist ⇒ Object
48
49
50
|
# File 'lib/traktr/user.rb', line 48
def watchlist
@watchlist ||= Traktr::User::Watchlist.new(@client)
end
|