lib/optimizely/engine.rb
def experiments(project_id)
      raise OptimizelyError::NoProjectID, "A Project ID is required to retrieve experiments." if project_id.nil?

      response = self.get("projects/#{project_id}/experiments")
      response.collect { |response_json| Experiment.new(response_json) }
    end
def experiments(project_id)
      raise OptimizelyError::NoProjectID, "A Project ID is required to retrieve experiments." if project_id.nil?

      response = self.get("projects/#{project_id}/experiments")
      response.collect { |response_json| Experiment.new(response_json) }
    end
Returns the list of experiments for a specified project.

 == Usage
  optimizely = Optimizely.new({ api_token: 'oauth2_token' })
  experiments = optimizely.experiments(12345) # Look up all experiments for a project.