Class: Traktr::Show::Season
Instance Method Summary
collapse
Methods inherited from Endpoint
#initialize
Instance Method Details
#library(show, season) ⇒ Object
4
5
6
7
8
9
10
11
|
# File 'lib/traktr/show/season.rb', line 4
def library(show, season)
data = {
username: @client.username, password: @client.password,
title: show.title, year: show.year, imdb_id: show.imdb_id, tvdb_id: show.tvdb_id,
season: season
}
parse_response self.class.post("/" + File.join("library", @client.api_key), body: data.to_json, headers: { 'Content-Type' => 'application/json'})
end
|
#seen(show, season) ⇒ Object
13
14
15
16
17
18
19
20
|
# File 'lib/traktr/show/season.rb', line 13
def seen(show, season)
data = {
username: @client.username, password: @client.password,
title: show.title, year: show.year, imdb_id: show.imdb_id, tvdb_id: show.tvdb_id,
season: season
}
parse_response self.class.post("/" + File.join("seen", @client.api_key), body: data.to_json, headers: { 'Content-Type' => 'application/json'})
end
|