class TMSAPI::Resource::Movie::Theatres

Public Class Methods

new(connection, options = {}) click to toggle source
Calls superclass method TMSAPI::Resource::Base::new
# File lib/tmsapi/resource/movies_theatres.rb, line 9
def initialize(connection, options = {})
  super(connection, "v1")
end

Public Instance Methods

showings(params) click to toggle source
# 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

Private Instance Methods

alt_path() click to toggle source
# File lib/tmsapi/resource/movies_theatres.rb, line 30
def alt_path
  "movies"
end
base_path() click to toggle source
# File lib/tmsapi/resource/movies_theatres.rb, line 26
def base_path
  "theatres"
end
showings_path() click to toggle source
# File lib/tmsapi/resource/movies_theatres.rb, line 22
def showings_path
  "#{alt_path}/showings"
end