Class: Traktr::Shows

Inherits:
Endpoint show all
Defined in:
lib/traktr/shows.rb

Instance Method Summary collapse

Methods inherited from Endpoint

#initialize

Constructor Details

This class inherits a constructor from Traktr::Endpoint

Instance Method Details



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