Class: Traktr::Recommendations
Instance Method Summary
collapse
Methods inherited from Endpoint
#initialize
Instance Method Details
#movies(data = {}) ⇒ Object
3
4
5
|
# File 'lib/traktr/recommendations.rb', line 3
def movies( data = {} )
parse_response self.class.post('/' + File.join('movies', @client.api_key), body: data.merge(@auth).to_json, headers: { 'Content-Type' => 'application/json'})
end
|
#movies_dismiss(data) ⇒ Object
7
8
9
|
# File 'lib/traktr/recommendations.rb', line 7
def movies_dismiss( data )
parse_response self.class.post('/' + File.join('movies/dismiss', @client.api_key), body: data.merge(@auth).to_json, headers: { 'Content-Type' => 'application/json'})
end
|
#shows(data = {}) ⇒ Object
11
12
13
|
# File 'lib/traktr/recommendations.rb', line 11
def shows( data = {} )
parse_response self.class.post('/' + File.join('shows', @client.api_key), body: data.merge(@auth).to_json, headers: { 'Content-Type' => 'application/json'})
end
|
#shows_dismiss(data) ⇒ Object
15
16
17
|
# File 'lib/traktr/recommendations.rb', line 15
def shows_dismiss( data )
parse_response self.class.post('/' + File.join('shows/dismiss', @client.api_key), body: data.merge(@auth).to_json, headers: { 'Content-Type' => 'application/json'})
end
|