Class: TvdbParty::Episode
- Inherits:
-
Object
- Object
- TvdbParty::Episode
- Defined in:
- lib/tvdb_party/episode.rb
Instance Attribute Summary collapse
-
#air_date ⇒ Object
Returns the value of attribute air_date.
-
#director ⇒ Object
Returns the value of attribute director.
-
#guest_stars ⇒ Object
Returns the value of attribute guest_stars.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#number ⇒ Object
Returns the value of attribute number.
-
#overview ⇒ Object
Returns the value of attribute overview.
-
#season_number ⇒ Object
Returns the value of attribute season_number.
-
#thumb ⇒ Object
Returns the value of attribute thumb.
-
#writer ⇒ Object
Returns the value of attribute writer.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Episode
constructor
A new instance of Episode.
Constructor Details
#initialize(options = {}) ⇒ Episode
Returns a new instance of Episode.
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/tvdb_party/episode.rb', line 5 def initialize(={}) @id = ["id"] @season_number = ["SeasonNumber"] @number = ["EpisodeNumber"] @name = ["EpisodeName"] @overview = ["Overview"] @air_date = Date.parse(["FirstAired"]) @thumb = "http://thetvdb.com/banners/" + ["filename"] if ["filename"].to_s != "" @guest_stars = ["GuestStars"][1..-1].split("|") @director = ["Director"] @writer = ["Writer"] end |
Instance Attribute Details
#air_date ⇒ Object
Returns the value of attribute air_date.
3 4 5 |
# File 'lib/tvdb_party/episode.rb', line 3 def air_date @air_date end |
#director ⇒ Object
Returns the value of attribute director.
3 4 5 |
# File 'lib/tvdb_party/episode.rb', line 3 def director @director end |
#guest_stars ⇒ Object
Returns the value of attribute guest_stars.
3 4 5 |
# File 'lib/tvdb_party/episode.rb', line 3 def guest_stars @guest_stars end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/tvdb_party/episode.rb', line 3 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/tvdb_party/episode.rb', line 3 def name @name end |
#number ⇒ Object
Returns the value of attribute number.
3 4 5 |
# File 'lib/tvdb_party/episode.rb', line 3 def number @number end |
#overview ⇒ Object
Returns the value of attribute overview.
3 4 5 |
# File 'lib/tvdb_party/episode.rb', line 3 def overview @overview end |
#season_number ⇒ Object
Returns the value of attribute season_number.
3 4 5 |
# File 'lib/tvdb_party/episode.rb', line 3 def season_number @season_number end |
#thumb ⇒ Object
Returns the value of attribute thumb.
3 4 5 |
# File 'lib/tvdb_party/episode.rb', line 3 def thumb @thumb end |
#writer ⇒ Object
Returns the value of attribute writer.
3 4 5 |
# File 'lib/tvdb_party/episode.rb', line 3 def writer @writer end |