class OdeonApi::Film
Public Class Methods
all()
click to toggle source
# File lib/odeon_api/models/film.rb, line 4 def self.all build_collection( OdeonApi::Requester.get('app-init')["data"]["films"], MultiFilmRepresenter ) end
find(id)
click to toggle source
# File lib/odeon_api/models/film.rb, line 11 def self.find(id) build_single_resource( OdeonApi::Requester.get('film-details', m: id)["data"], FilmRepresenter ) end
find_by_name(name)
click to toggle source
# File lib/odeon_api/models/film.rb, line 27 def self.find_by_name(name) end
times(film_id, cinema_id)
click to toggle source
# File lib/odeon_api/models/film.rb, line 18 def self.times(film_id, cinema_id) build_collection( OdeonApi::Requester.get('film-times', s: cinema_id, m: film_id)["data"], FilmTimeRepresenter ) # 102 # 15866 end