lib/tmdb-api/base.rb
def build_objects(key, values)
      klass = TMDb.const_get(key.classify)
      values.map do |attr|
        klass.new(attr)
      end
    end
def build_objects(key, values)
      klass = TMDb.const_get(key.classify)
      values.map do |attr|
        klass.new(attr)
      end
    end
Internal: Builds objects for the nested resources from API.

 key    - attribute related to the object (ex: genres, spoken_languages).
 values - values of the attribute.

 Returns an array of objects