class Traktr::Activity::User
Public Instance Methods
episodes(username, title, season, episode, actions = :all, start_ts = 0, end_ts = Time.now.to_i)
click to toggle source
# File lib/traktr/activity/user.rb, line 4 def episodes(username, title, season, episode, actions = :all, start_ts = 0, end_ts = Time.now.to_i) actions = actions.class == Array ? actions.join(",") : actions.to_s parse_response self.class.get('/' + File.join('episodes.json', @client.api_key, username, title, season.to_s, episode.to_s, actions, start_ts.to_s, end_ts.to_s)) end
movies(username, title, actions = :all, start_ts = 0, end_ts = Time.now.to_i)
click to toggle source
# File lib/traktr/activity/user.rb, line 9 def movies(username, title, actions = :all, start_ts = 0, end_ts = Time.now.to_i) actions = actions.class == Array ? actions.join(",") : actions.to_s parse_response self.class.get('/' + File.join('movies.json', @client.api_key, username, title, actions, start_ts.to_s, end_ts.to_s)) end
seasons(username, title, season, actions = :all, start_ts = 0, end_ts = Time.now.to_i)
click to toggle source
# File lib/traktr/activity/user.rb, line 14 def seasons(username, title, season, actions = :all, start_ts = 0, end_ts = Time.now.to_i) actions = actions.class == Array ? actions.join(",") : actions.to_s parse_response self.class.get('/' + File.join('seasons.json', @client.api_key, username, title, season.to_s, actions, start_ts.to_s, end_ts.to_s)) end
shows(username, title, actions = :all, start_ts = 0, end_ts = Time.now.to_i)
click to toggle source
# File lib/traktr/activity/user.rb, line 19 def shows(username, title, actions = :all, start_ts = 0, end_ts = Time.now.to_i) actions = actions.class == Array ? actions.join(",") : actions.to_s parse_response self.class.get('/' + File.join('shows.json', @client.api_key, username, title, actions, start_ts.to_s, end_ts.to_s)) end