Class: TheTvDbParty::Update
- Inherits:
-
Object
- Object
- TheTvDbParty::Update
- Defined in:
- lib/thetvdb_party/update.rb
Overview
Struct.new(“SerieUpdate”,:seriesid,:updatetime) Struct.new(“EpisodeUpdate”,:episodeid,:seriesid,:updatetime) Struct.new(“BannerUpdate”,:path,:format,:type,:seriesid,:seasonnum,:language)
Instance Attribute Summary collapse
-
#banners ⇒ Object
readonly
The list of bannerids for banners which has been updated.
-
#client ⇒ Object
readonly
TheTvDB client used.
-
#episodes ⇒ Object
readonly
The list of episodeids for episodes which has been updated.
-
#series ⇒ Object
readonly
The list of seriesids for shows which has been updated.
-
#timestamp ⇒ Object
readonly
The timestamp from TheTvDB when the update was handled.
Instance Method Summary collapse
-
#initialize(client, data, ziped) ⇒ Update
constructor
A new instance of Update.
Constructor Details
#initialize(client, data, ziped) ⇒ Update
Returns a new instance of Update.
20 21 22 23 24 25 26 27 28 |
# File 'lib/thetvdb_party/update.rb', line 20 def initialize(client, data, ziped) @client = client if(ziped==true) read_ziped_values(data) else read_hash_values(data) end end |
Instance Attribute Details
#banners ⇒ Object (readonly)
The list of bannerids for banners which has been updated
18 19 20 |
# File 'lib/thetvdb_party/update.rb', line 18 def @banners end |
#client ⇒ Object (readonly)
TheTvDB client used
10 11 12 |
# File 'lib/thetvdb_party/update.rb', line 10 def client @client end |
#episodes ⇒ Object (readonly)
The list of episodeids for episodes which has been updated
16 17 18 |
# File 'lib/thetvdb_party/update.rb', line 16 def episodes @episodes end |
#series ⇒ Object (readonly)
The list of seriesids for shows which has been updated
14 15 16 |
# File 'lib/thetvdb_party/update.rb', line 14 def series @series end |
#timestamp ⇒ Object (readonly)
The timestamp from TheTvDB when the update was handled. To be used for update chaining and verificaton.
12 13 14 |
# File 'lib/thetvdb_party/update.rb', line 12 def @timestamp end |