Class: Trakt::Movie
- Inherits:
-
Object
show all
- Includes:
- Connection
- Defined in:
- lib/trakt/movie.rb,
lib/trakt/movies.rb
Instance Attribute Summary
Attributes included from Connection
#trakt
Instance Method Summary
collapse
Methods included from Connection
#initialize, #require_settings
Instance Method Details
#cancelcheckin ⇒ Object
4
5
6
|
# File 'lib/trakt/movie.rb', line 4
def cancelcheckin
post("/movie/cancelcheckin")
end
|
#cancelwatching ⇒ Object
7
8
9
|
# File 'lib/trakt/movie.rb', line 7
def cancelwatching
post("/movie/cancelwatching")
end
|
#checkin(options = {}) ⇒ Object
10
11
12
|
# File 'lib/trakt/movie.rb', line 10
def checkin(options = {})
post("/movie/checkin", options)
end
|
#find(query) ⇒ Object
4
5
6
|
# File 'lib/trakt/movies.rb', line 4
def find(query)
get('/search/movies.json/',clean_query(query))
end
|
#library(options = {}) ⇒ Object
19
20
21
|
# File 'lib/trakt/movie.rb', line 19
def library(options = {})
post("/movie/library", options)
end
|
22
23
24
|
# File 'lib/trakt/movie.rb', line 22
def related(*args)
get_with_args('/search/related.json/', *args)
end
|
#scrobble(options = {}) ⇒ Object
13
14
15
|
# File 'lib/trakt/movie.rb', line 13
def scrobble(options = {})
post("/movie/scrobble", options)
end
|
#seen(options = {}) ⇒ Object
16
17
18
|
# File 'lib/trakt/movie.rb', line 16
def seen(options = {})
post("/movie/seen", options)
end
|
#shouts(*args) ⇒ Object
25
26
27
|
# File 'lib/trakt/movie.rb', line 25
def shouts(*args)
get_with_args('/search/shouts.json/', *args)
end
|
#summary(*args) ⇒ Object
28
29
30
|
# File 'lib/trakt/movie.rb', line 28
def summary(*args)
get_with_args('/search/summary.json/', *args)
end
|
#unlibrary(options = {}) ⇒ Object
31
32
33
|
# File 'lib/trakt/movie.rb', line 31
def unlibrary(options = {})
post("/movie/unlibrary", options)
end
|
#unseen(options = {}) ⇒ Object
34
35
36
|
# File 'lib/trakt/movie.rb', line 34
def unseen(options = {})
post("/movie/unseen", options)
end
|
#unwatchlist(options = {}) ⇒ Object
37
38
39
|
# File 'lib/trakt/movie.rb', line 37
def unwatchlist(options = {})
post("/movie/unwatchlist", options)
end
|
#watching(options = {}) ⇒ Object
40
41
42
|
# File 'lib/trakt/movie.rb', line 40
def watching(options = {})
post("/movie/watching", options)
end
|
#watchingnow(*args) ⇒ Object
43
44
45
|
# File 'lib/trakt/movie.rb', line 43
def watchingnow(*args)
get_with_args('/search/watchingnow.json/', *args)
end
|
#watchlist(options = {}) ⇒ Object
46
47
48
|
# File 'lib/trakt/movie.rb', line 46
def watchlist(options = {})
post("/movie/watchlist", options)
end
|