Class: TvdbParty::Banner

Inherits:
Object
  • Object
show all
Defined in:
lib/tvdb_party/banner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(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.



3
4
5
# File 'lib/tvdb_party/banner.rb', line 3

def banner_type
  @banner_type
end

Returns the value of attribute banner_type2.



3
4
5
# File 'lib/tvdb_party/banner.rb', line 3

def banner_type2
  @banner_type2
end

#languageObject

Returns the value of attribute language.



3
4
5
# File 'lib/tvdb_party/banner.rb', line 3

def language
  @language
end

#pathObject

Returns the value of attribute path.



3
4
5
# File 'lib/tvdb_party/banner.rb', line 3

def path
  @path
end

#seasonObject

Returns the value of attribute season.



3
4
5
# File 'lib/tvdb_party/banner.rb', line 3

def season
  @season
end

#thumbnail_pathObject

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_urlObject



17
18
19
# File 'lib/tvdb_party/banner.rb', line 17

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

#urlObject



13
14
15
# File 'lib/tvdb_party/banner.rb', line 13

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