Class: P3::Tvdb::Banner

Inherits:
Object
  • Object
show all
Defined in:
lib/p3-tvdb/banner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Banner

Returns a new instance of Banner.



6
7
8
9
10
11
12
# 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

Instance Attribute Details

Returns the value of attribute banner_type.



4
5
6
# File 'lib/p3-tvdb/banner.rb', line 4

def banner_type
  @banner_type
end

Returns the value of attribute banner_type2.



4
5
6
# File 'lib/p3-tvdb/banner.rb', line 4

def banner_type2
  @banner_type2
end

#languageObject

Returns the value of attribute language.



4
5
6
# File 'lib/p3-tvdb/banner.rb', line 4

def language
  @language
end

#pathObject

Returns the value of attribute path.



4
5
6
# File 'lib/p3-tvdb/banner.rb', line 4

def path
  @path
end

#seasonObject

Returns the value of attribute season.



4
5
6
# File 'lib/p3-tvdb/banner.rb', line 4

def season
  @season
end

#thumbnail_pathObject

Returns the value of attribute thumbnail_path.



4
5
6
# File 'lib/p3-tvdb/banner.rb', line 4

def thumbnail_path
  @thumbnail_path
end

Instance Method Details

#thumb_urlObject



18
19
20
# File 'lib/p3-tvdb/banner.rb', line 18

def thumb_url
    "http://thetvdb.com/banners/_cache/" + @path
end

#urlObject



14
15
16
# File 'lib/p3-tvdb/banner.rb', line 14

def url
    "http://thetvdb.com/banners/" + @path
end