Class: MoviesObject
Instance Method Summary
collapse
#attributes, #attributes=
Constructor Details
Returns a new instance of MoviesObject.
7
8
9
|
# File 'lib/movies_client/movies_object.rb', line 7
def initialize(hash)
self.attributes = hash
end
|
Instance Method Details
#casting(movie) ⇒ Object
71
72
73
|
# File 'lib/movies_client/movies_object.rb', line 71
def casting(movie)
@result[movie.to_s][:casting]
end
|
#cine1 ⇒ Object
15
16
17
|
# File 'lib/movies_client/movies_object.rb', line 15
def cine1
@cinema1
end
|
#cine2 ⇒ Object
19
20
21
|
# File 'lib/movies_client/movies_object.rb', line 19
def cine2
@cinema2
end
|
#date(day) ⇒ Object
23
24
25
|
# File 'lib/movies_client/movies_object.rb', line 23
def date(day)
@daily_schedule[day.to_s][:date]
end
|
#film1(day) ⇒ Object
27
28
29
|
# File 'lib/movies_client/movies_object.rb', line 27
def film1(day)
@daily_schedule[day.to_s][:film1]
end
|
#film2(day) ⇒ Object
31
32
33
|
# File 'lib/movies_client/movies_object.rb', line 31
def film2(day)
@daily_schedule[day.to_s][:film2]
end
|
#film3(day) ⇒ Object
35
36
37
|
# File 'lib/movies_client/movies_object.rb', line 35
def film3(day)
@daily_schedule[day.to_s][:film3]
end
|
#film4(day) ⇒ Object
39
40
41
|
# File 'lib/movies_client/movies_object.rb', line 39
def film4(day)
@daily_schedule[day.to_s][:film4]
end
|
#genre(movie) ⇒ Object
75
76
77
|
# File 'lib/movies_client/movies_object.rb', line 75
def genre(movie)
@result[movie.to_s][:genre]
end
|
#horaire1(day) ⇒ Object
43
44
45
|
# File 'lib/movies_client/movies_object.rb', line 43
def horaire1(day)
@daily_schedule[day.to_s][:horaire1]
end
|
#horaire2(day) ⇒ Object
47
48
49
|
# File 'lib/movies_client/movies_object.rb', line 47
def horaire2(day)
@daily_schedule[day.to_s][:horaire2]
end
|
#id(movie) ⇒ Object
51
52
53
|
# File 'lib/movies_client/movies_object.rb', line 51
def id(movie)
@result[movie.to_s][:id].to_s
end
|
#mois ⇒ Object
11
12
13
|
# File 'lib/movies_client/movies_object.rb', line 11
def mois
@mois
end
|
#overview(movie) ⇒ Object
67
68
69
|
# File 'lib/movies_client/movies_object.rb', line 67
def overview(movie)
@result[movie.to_s][:synopsis]
end
|
#poster(movie) ⇒ Object
55
56
57
|
# File 'lib/movies_client/movies_object.rb', line 55
def poster(movie)
@result[movie.to_s][:poster]
end
|
#tagline(movie) ⇒ Object
79
80
81
|
# File 'lib/movies_client/movies_object.rb', line 79
def tagline(movie)
@result[movie.to_s][:tagline]
end
|
#title(movie) ⇒ Object
59
60
61
|
# File 'lib/movies_client/movies_object.rb', line 59
def title(movie)
@result[movie.to_s][:title]
end
|
#title_list(movie) ⇒ Object
63
64
65
|
# File 'lib/movies_client/movies_object.rb', line 63
def title_list(movie)
@result[movie.to_s][:title_list]
end
|