Class: Traktr::User::Watchlist

Inherits:
Endpoint
  • Object
show all
Defined in:
lib/traktr/user/watchlist.rb

Instance Method Summary collapse

Methods inherited from Endpoint

#initialize

Constructor Details

This class inherits a constructor from Traktr::Endpoint

Instance Method Details

#episodes(username = @client.username) ⇒ Object



4
5
6
# File 'lib/traktr/user/watchlist.rb', line 4

def episodes(username = @client.username)
  parse_response self.class.get('/' + File.join('episodes.json', @client.api_key, username))
end

#movies(username = @client.username) ⇒ Object



8
9
10
# File 'lib/traktr/user/watchlist.rb', line 8

def movies(username = @client.username)
  parse_response self.class.get('/' + File.join('movies.json', @client.api_key, username))
end

#shows(username = @client.username) ⇒ Object



12
13
14
# File 'lib/traktr/user/watchlist.rb', line 12

def shows(username = @client.username)
  parse_response self.class.get('/' + File.join('shows.json', @client.api_key, username))
end