Class: GoogleMovies::Client
- Inherits:
-
Object
- Object
- GoogleMovies::Client
- Defined in:
- lib/google_movies.rb
Constant Summary collapse
- ROOT_URL =
"http://google.com/movies"
Instance Method Summary collapse
-
#initialize(city) ⇒ Client
constructor
A new instance of Client.
- #movies_theaters ⇒ Object
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_theaters ⇒ Object
18 19 20 |
# File 'lib/google_movies.rb', line 18 def movies_theaters @http_client.movies_theater end |