I'd rather see a "NullMovie" or "NotFoundMovie" object returned here --- something that you can test for, rather than testing if the movie's id == 0.

But, this works!

If you did the null movie, it could look like

```ruby
def self.search_by_title(title)
  url = "http://api.rottentomatoes.com/api/public/v1.0/movies.json?apikey=#{APIKEY}&q=#{URI.encode(title)}&page_limit=1"
  build_move get_url_as_json(url).fetch("movies").first
end

def build_movie(json)
  struct = OpenStruct.new(json)
  if json["ratings"]
    Movie.new() # id/title/year
  else
    NotFoundMovie.new
end
```