Class: TMSAPI::Resource::Movie::Theatres
- Defined in:
- lib/tmsapi/resource/movies_theatres.rb
Instance Method Summary collapse
-
#initialize(connection, options = {}) ⇒ Theatres
constructor
A new instance of Theatres.
- #showings(params) ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(connection, options = {}) ⇒ Theatres
Returns a new instance of Theatres.
9 10 11 |
# File 'lib/tmsapi/resource/movies_theatres.rb', line 9 def initialize(connection, = {}) super(connection, "v1") end |
Instance Method Details
#showings(params) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/tmsapi/resource/movies_theatres.rb', line 13 def showings(params) params[:startDate] = Date.today unless params[:startDate] get(showings_path, params).each do |movie| TMSAPI::Model::Movie.new movie end end |