require 'movies_client/attribute_helper' class MoviesObject include AttributeHelper def initialize(hash) self.attributes = hash end def mois @mois end def cine1 @cinema1 end def cine2 @cinema2 end def whole_day(day) @daily_schedule[day.to_s] end def date(day) @daily_schedule[day.to_s][:date] end def film1(day) @daily_schedule[day.to_s][:film1] end def film2(day) @daily_schedule[day.to_s][:film2] end def film3(day) @daily_schedule[day.to_s][:film3] end def film4(day) @daily_schedule[day.to_s][:film4] end def horaire1(day) @daily_schedule[day.to_s][:horaire1] end def horaire2(day) @daily_schedule[day.to_s][:horaire2] end def id(movie) @result[movie.to_s][:id].to_s end def poster(movie) @result[movie.to_s][:poster] end def title(movie) @result[movie.to_s][:title] end def title_list(movie) @result[movie.to_s][:title_list] end def overview(movie) @result[movie.to_s][:synopsis] end def casting(movie) @result[movie.to_s][:casting] end def genre(movie) @result[movie.to_s][:genre] end def tagline(movie) @result[movie.to_s][:tagline] end def release_date(movie) @result[movie.to_s][:release_date] end def trailer(movie) @result[movie.to_s][:trailer] end def director(movie) @result[movie.to_s][:credits][:credit]["Director"] end def author(movie) @result[movie.to_s][:credits][:credit]["Author"] end def producer(movie) @result[movie.to_s][:credits][:credit]["Producer"] end def original_music_composer(movie) @result[movie.to_s][:credits][:credit]["Original Music Composer"] end def director_of_photography(movie) @result[movie.to_s][:credits][:credit]["Director of Photography"] end def editor(movie) @result[movie.to_s][:credits][:credit]["Editor"] end def novel(movie) @result[movie.to_s][:credits][:credit]["Novel"] end end