Class: TvdbParty::Banner
- Inherits:
-
Object
- Object
- TvdbParty::Banner
- Defined in:
- lib/tvdb_party/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.
5 6 7 8 9 10 11 |
# File 'lib/tvdb_party/banner.rb', line 5 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.
3 4 5 |
# File 'lib/tvdb_party/banner.rb', line 3 def @banner_type end |
#banner_type2 ⇒ Object
Returns the value of attribute banner_type2.
3 4 5 |
# File 'lib/tvdb_party/banner.rb', line 3 def @banner_type2 end |
#language ⇒ Object
Returns the value of attribute language.
3 4 5 |
# File 'lib/tvdb_party/banner.rb', line 3 def language @language end |
#path ⇒ Object
Returns the value of attribute path.
3 4 5 |
# File 'lib/tvdb_party/banner.rb', line 3 def path @path end |
#season ⇒ Object
Returns the value of attribute season.
3 4 5 |
# File 'lib/tvdb_party/banner.rb', line 3 def season @season end |
#thumbnail_path ⇒ Object
Returns the value of attribute thumbnail_path.
3 4 5 |
# File 'lib/tvdb_party/banner.rb', line 3 def thumbnail_path @thumbnail_path end |
Instance Method Details
#thumb_url ⇒ Object
17 18 19 |
# File 'lib/tvdb_party/banner.rb', line 17 def thumb_url "https://thetvdb.com/banners/_cache/" + @path end |
#url ⇒ Object
13 14 15 |
# File 'lib/tvdb_party/banner.rb', line 13 def url "https://thetvdb.com/banners/" + @path end |