ods_tmdb_GB 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzlhNWU5MzNjZjY4NmQxODFiYTU3NTE2N2IwNjE5ODkyMDE4OTNlNg==
4
+ YTE0YmM2N2ZjNWE3MTQ4NTQxOTRlNGRlY2ViODlhZWUxYmU1OWJmMQ==
5
5
  data.tar.gz: !binary |-
6
- ZDFmN2RlMjhlOGE0YmM0MGQ4NTAxYzhiMzA0YWEzZDVjZDhhMjYwNw==
6
+ NTIzM2Q5OTRhYTllNzkzMjU4YzlkNzlhOTE1ODVjNmM4YzJlMzUxMQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NWE3NDBlOTJmMzc3NTNkNDliMmNiMTEwMWFjZjUzMjBhZTNmNWQ2Mzk2ZWM1
10
- MjliMzVhZTZlZjBjYmFkMzc3ZWRkNDY0ZWNjMDE3NzI1NDkxYzJkYjE4ZTkz
11
- MDgwZGJhMWVmZjY3MGI1ZDI4Yzc1NTU5ODVhYmY2ZjQ2YWYxYWU=
9
+ MTQ1M2ZlNWQyZWVhNGQ3OTQzYzVkNTM2MDM2ZTNlNWY2ZTIzYmQxOGUwYmE2
10
+ MWM3MDI2YTVmZWNiZWVhZTg3MTRjY2MyODEwMTdmNjhmMGUyYThhN2UxZjY2
11
+ YjkwYjA3NGQwNDA1ZjhjZGQ5ODdlMDc4Y2UwMDJmNzNhNmFlYmY=
12
12
  data.tar.gz: !binary |-
13
- MjkyNmNkNWY3Y2EyM2ZhYWFhNjI1ZmQwNjQ4NzBlMzEzYWE0MWU4Nzc5NWM4
14
- NTNkNTZhNWRhNWI1NjhlMTA4MGU1YTY0MzM2Y2U2ZWViMjU4OTFiOWI1MzU2
15
- YmE1ZGU3NTZjYWFjZjM5ZWUwOGVjMWUxMzIxNjFlNDg0YWFjNzA=
13
+ Y2QwZmQyZDliMTE3ZWJjMmY5YjViM2I2MWM5N2Q2OWQ5OGMwYTJhNmQ1YjMz
14
+ YjM4ZDI1MTQ5YWNkOWI2N2FjZjI1YjFlYjk3MjBkZmYwMWY5MTYyMzY5NTg1
15
+ MzI3OGMzMzY1YTQ3ZjgyMzI2MmIyNTU0Y2U0NmFhNWE3MzU1MTE=
@@ -1,7 +1,63 @@
1
1
  class CinemaObject
2
2
 
3
3
  def initialize(attributes = [])
4
- @parsing = attributes
4
+ @information = attributes
5
+ end
6
+
7
+ def mois
8
+ @information[:mois]
9
+ end
10
+
11
+ def cine1
12
+ @information[:cinema1]
13
+ end
14
+
15
+ def cine2
16
+ @information[:cinema2]
17
+ end
18
+
19
+ def film1(day)
20
+ @information[day.to_s][:film1]
21
+ end
22
+
23
+ def film2(day)
24
+ @information[day.to_s][:film2]
25
+ end
26
+
27
+ def film3(day)
28
+ @information[day.to_s][:film2]
29
+ end
30
+
31
+ def film4(day)
32
+ @information[day.to_s][:film2]
33
+ end
34
+
35
+ def horaire1(day)
36
+ @information[day.to_s][:horaire1]
37
+ end
38
+
39
+ def horaire2(day)
40
+ @information[day.to_s][:horaire2]
41
+ end
42
+
43
+ def id(movie)
44
+ @information[:information][movie.to_s][:id]
45
+ end
46
+
47
+ def poster(movie)
48
+ @information[:information][movie.to_s][:poster]
49
+ end
50
+
51
+ def title(movie)
52
+ @information[:information][movie.to_s][:title]
53
+ end
54
+
55
+ def title_list(movie)
56
+ @information[:information][movie.to_s][:title_list]
57
+ end
58
+
59
+ def overview(movie)
60
+ @information[:information][movie.to_s][:synopsis]
5
61
  end
6
62
 
7
63
  end
@@ -1,3 +1,3 @@
1
1
  module CinemaInformation
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -79,9 +79,9 @@ class CinemaInformationTest < Test::Unit::TestCase
79
79
  CinemaInformation.configure_api_key('7f0b035c164b74d6eec69ebcd8ff8d12')
80
80
  @movie_info = CinemaInformation.get_movie_info_from_list(list, 'w500')
81
81
  puts @movie_info
82
- assert_equal 273169, @movie_info["SOUS LES JUPES DES FILLES"][:id]
83
- assert_equal 'Sous les jupes des filles', @movie_info["SOUS LES JUPES DES FILLES"][:title]
84
- assert_equal 'SOUS LES JUPES DES FILLES', @movie_info["SOUS LES JUPES DES FILLES"][:title_list]
82
+ assert_equal 273169, @movie_info["SOUS LES JUPES DES FILLES"][:id]
83
+ assert_equal 'Sous les jupes des filles', @movie_info["SOUS LES JUPES DES FILLES"][:title]
84
+ assert_equal 'SOUS LES JUPES DES FILLES', @movie_info["SOUS LES JUPES DES FILLES"][:title_list]
85
85
  assert_equal "Paris. 28 premiers jours du printemps. 11 femmes.\r M\u00E8res de famille, femmes d'affaires, copines, ma\u00EEtresses ou \u00E9pouses...\r Toutes repr\u00E9sentent une facette de la femme d'aujourd'hui : Complexes, joyeuses, complex\u00E9es, explosives, insolentes, surprenantes... Bref, un \u00EAtre paradoxal, totalement d\u00E9boussol\u00E9, d\u00E9finitivement vivant, FEMMES tout simplement !", @movie_info["SOUS LES JUPES DES FILLES"][:synopsis]
86
86
  assert_equal 'http://image.tmdb.org/t/p/w500//qtdx6rnatFNT3xSXcQzGzRAX24H.jpg', @movie_info["SOUS LES JUPES DES FILLES"][:poster]
87
87
  assert_equal 'Comédie', @movie_info["SOUS LES JUPES DES FILLES"][:genre][0]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ods_tmdb_GB
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - SimonRonzani