Class: GoogleMovies::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/google_movies.rb

Constant Summary collapse

ROOT_URL =
"http://google.com/movies"

Instance Method Summary collapse

Constructor Details

#initialize(city) ⇒ Client

Returns a new instance of Client.



13
14
15
16
# File 'lib/google_movies.rb', line 13

def initialize(city)
  @city = city
  @http_client = HttpCapture::Client.new("#{ROOT_URL}?near=#{@city}")
end

Instance Method Details

#movies_theatersObject



18
19
20
# File 'lib/google_movies.rb', line 18

def movies_theaters
  @http_client.movies_theater
end