Sha256: 5b0608e6322aff6de7eee74189f81abd9bf23c9722a7aa56ed9013a7d557da76
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
require 'cinema_information/attribute_helper' class CinemaObject include AttributeHelper def initialize(hash) self.attributes = hash end def mois @mois end def cine1 @cinema1 end def cine2 @cinema2 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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ods_tmdb_GB-0.0.7 | lib/cinema_information/cinema_object.rb |
ods_tmdb_GB-0.0.6 | lib/cinema_information/cinema_object.rb |