Class: P3::Tvdb::Banner
- Inherits:
-
Object
- Object
- P3::Tvdb::Banner
- Defined in:
- lib/p3-tvdb/banner.rb
Instance Attribute Summary collapse
-
#banner_type ⇒ Object
Returns the value of attribute banner_type.
-
#banner_type2 ⇒ Object
Returns the value of attribute banner_type2.
-
#language ⇒ Object
Returns the value of attribute language.
-
#path ⇒ Object
Returns the value of attribute path.
-
#season ⇒ Object
Returns the value of attribute season.
-
#thumbnail_path ⇒ Object
Returns the value of attribute thumbnail_path.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Banner
constructor
A new instance of Banner.
- #thumb_url ⇒ Object
- #url ⇒ Object
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(={}) @banner_type = ["BannerType"] @banner_type2 = ["BannerType2"] @season = ["Season"] @path = ["BannerPath"] @language = ["Language"] end |
Instance Attribute Details
#banner_type ⇒ Object
Returns the value of attribute banner_type.
4 5 6 |
# File 'lib/p3-tvdb/banner.rb', line 4 def @banner_type end |
#banner_type2 ⇒ Object
Returns the value of attribute banner_type2.
4 5 6 |
# File 'lib/p3-tvdb/banner.rb', line 4 def @banner_type2 end |
#language ⇒ Object
Returns the value of attribute language.
4 5 6 |
# File 'lib/p3-tvdb/banner.rb', line 4 def language @language end |
#path ⇒ Object
Returns the value of attribute path.
4 5 6 |
# File 'lib/p3-tvdb/banner.rb', line 4 def path @path end |
#season ⇒ Object
Returns the value of attribute season.
4 5 6 |
# File 'lib/p3-tvdb/banner.rb', line 4 def season @season end |
#thumbnail_path ⇒ Object
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_url ⇒ Object
18 19 20 |
# File 'lib/p3-tvdb/banner.rb', line 18 def thumb_url "http://thetvdb.com/banners/_cache/" + @path end |
#url ⇒ Object
14 15 16 |
# File 'lib/p3-tvdb/banner.rb', line 14 def url "http://thetvdb.com/banners/" + @path end |