Class: TheTvDbParty::Update

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#bannersObject (readonly)

The list of bannerids for banners which has been updated


18
19
20
# File 'lib/thetvdb_party/update.rb', line 18

def banners
  @banners
end

#clientObject (readonly)

TheTvDB client used


10
11
12
# File 'lib/thetvdb_party/update.rb', line 10

def client
  @client
end

#episodesObject (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

#seriesObject (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

#timestampObject (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
  @timestamp
end