class P3::Tvdb::Banner

Attributes

banner_type[RW]
banner_type2[RW]
language[RW]
path[RW]
season[RW]
thumbnail_path[RW]

Public Class Methods

new(options={}) click to toggle source
# File lib/p3-tvdb/banner.rb, line 6
def initialize(options={})
    @banner_type = options["BannerType"]
    @banner_type2 = options["BannerType2"]
    @season = options["Season"]
    @path = options["BannerPath"]
    @language = options["Language"]
end

Public Instance Methods

thumb_url() click to toggle source
# File lib/p3-tvdb/banner.rb, line 18
def thumb_url
    "http://thetvdb.com/banners/_cache/" + @path
end
url() click to toggle source
# File lib/p3-tvdb/banner.rb, line 14
def url
    "http://thetvdb.com/banners/" + @path
end