Class: Traktr::Calendar
Instance Method Summary
collapse
Methods inherited from Endpoint
#initialize
Instance Method Details
#premieres(date = Date.today, days = 7) ⇒ Object
3
4
5
6
|
# File 'lib/traktr/calendar.rb', line 3
def premieres(date = Date.today, days = 7)
date = date.class == Date ? date.strftime("%Y%m%d") : date.to_s
parse_response self.class.get('/' + File.join('premieres.json', @client.api_key, date, days.to_s), :basic_auth => @auth)
end
|
#shows(date = Date.today, days = 7) ⇒ Object
8
9
10
11
|
# File 'lib/traktr/calendar.rb', line 8
def shows(date = Date.today, days = 7)
date = date.class == Date ? date.strftime("%Y%m%d") : date.to_s
parse_response self.class.get('/' + File.join('shows.json', @client.api_key, date, days.to_s), :basic_auth => @auth)
end
|