class WhatToWatchController
Public Class Methods
new(api_key)
click to toggle source
# File lib/what_to_watch/controller.rb, line 4 def initialize(api_key) @api = ImdbApi.new(api_key) end
Public Instance Methods
coming_soon()
click to toggle source
# File lib/what_to_watch/controller.rb, line 16 def coming_soon @api.coming_soon end
on_theaters()
click to toggle source
# File lib/what_to_watch/controller.rb, line 8 def on_theaters @api.on_theaters end
recommend(title)
click to toggle source
# File lib/what_to_watch/controller.rb, line 20 def recommend(title) @api.recommendations(title) end
trailer(title)
click to toggle source
# File lib/what_to_watch/controller.rb, line 12 def trailer(title) @api.trailer(title) end