lib/tmdb-api/base.rb
def set_attributes(attributes)
      attributes.each do |key, value|
        if candidate_to_object?(value)
          next unless TMDb.const_defined?(key.classify)
          value = build_objects(key, value)
        end
        self.instance_variable_set("@#{key}", value)
      end
    end
def set_attributes(attributes)
      attributes.each do |key, value|
        if candidate_to_object?(value)
          next unless TMDb.const_defined?(key.classify)
          value = build_objects(key, value)
        end
        self.instance_variable_set("@#{key}", value)
      end
    end
Internal: Sets the attributes to the object.

 attributes - A hash containing the keys and values to be
              set in the object.

 Returns nothing