Class: Traktr::Shows
Instance Method Summary
collapse
Methods inherited from Endpoint
#initialize
Instance Method Details
#trending ⇒ Object
3
4
5
|
# File 'lib/traktr/shows.rb', line 3
def trending
parse_response self.class.get('/' + File.join('trending.json', @client.api_key), :basic_auth => @auth)
end
|
#updated(timestamp) ⇒ Object
7
8
9
10
|
# File 'lib/traktr/shows.rb', line 7
def updated(timestamp)
timestamp = timestamp.class == Time ? timestamp.to_i.to_s : timestamp.to_s
parse_response self.class.get('/' + File.join('updated.json', @client.api_key, timestamp))
end
|