class TivoHMO::TVDBHelper

Public Class Methods

new() click to toggle source
# File lib/tivohmo/tvdb_helper.rb, line 9
def initialize
  @client = Tvdbr::Client.new('4A7C459A8771A96D')
  @cache = {}
end

Public Instance Methods

find_by_id(series_id) click to toggle source
# File lib/tivohmo/tvdb_helper.rb, line 14
def find_by_id(series_id)
  @cache[series_id] ||= @client.find_series_by_id(series_id) rescue nil
end