Sha256: 18e929b4a9b85ff1671108d34ab1cf375d9f622cef60936b45378465adfc5206

Contents?: true

Size: 515 Bytes

Versions: 2

Compression:

Stored size: 515 Bytes

Contents

require "fandango/version"

require 'open-uri'
require 'nokogiri'

require 'fandango/api'

require 'fandango/theater'
require 'fandango/movie'
require 'fandango/showtime'

module Fandango

  module_function

  def movies_near(postal_code)
    MoviesNear.(postal_code)
  end

  def theater_showtimes(showtimes_link_or_options)
    if showtimes_link_or_options.is_a?(Hash)
      TheaterShowtimes.by_id_and_date(showtimes_link_or_options)
    else
      TheaterShowtimes.(showtimes_link_or_options)
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fandango-2.1.0 lib/fandango.rb
fandango-2.0.0 lib/fandango.rb