Class: MoviesObject

Inherits:
Object
  • Object
show all
Includes:
AttributeHelper
Defined in:
lib/movies_client/movies_object.rb

Instance Method Summary collapse

Methods included from AttributeHelper

#attributes, #attributes=

Constructor Details

#initialize(hash) ⇒ MoviesObject

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

#author(movie) ⇒ Object



91
92
93
# File 'lib/movies_client/movies_object.rb', line 91

def author(movie)
  @result[movie.to_s][:credits][:credit]["Author"]
end

#casting(movie) ⇒ Object



71
72
73
# File 'lib/movies_client/movies_object.rb', line 71

def casting(movie)
  @result[movie.to_s][:casting]
end

#cine1Object



15
16
17
# File 'lib/movies_client/movies_object.rb', line 15

def cine1
  @cinema1
end

#cine2Object



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

#director(movie) ⇒ Object



87
88
89
# File 'lib/movies_client/movies_object.rb', line 87

def director(movie)
  @result[movie.to_s][:credits][:credit]["Director"]
end

#director_of_photography(movie) ⇒ Object



103
104
105
# File 'lib/movies_client/movies_object.rb', line 103

def director_of_photography(movie)
  @result[movie.to_s][:credits][:credit]["Director of Photography"]
end

#editor(movie) ⇒ Object



107
108
109
# File 'lib/movies_client/movies_object.rb', line 107

def editor(movie)
  @result[movie.to_s][:credits][:credit]["Editor"]
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

#moisObject



11
12
13
# File 'lib/movies_client/movies_object.rb', line 11

def mois
  @mois
end

#novel(movie) ⇒ Object



111
112
113
# File 'lib/movies_client/movies_object.rb', line 111

def novel(movie)
  @result[movie.to_s][:credits][:credit]["Novel"]
end

#original_music_composer(movie) ⇒ Object



99
100
101
# File 'lib/movies_client/movies_object.rb', line 99

def original_music_composer(movie)
  @result[movie.to_s][:credits][:credit]["Original Music Composer"]
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

#producer(movie) ⇒ Object



95
96
97
# File 'lib/movies_client/movies_object.rb', line 95

def producer(movie)
  @result[movie.to_s][:credits][:credit]["Producer"]
end

#release_date(movie) ⇒ Object



83
84
85
# File 'lib/movies_client/movies_object.rb', line 83

def release_date(movie)
  @result[movie.to_s][:release_date]
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