# google-cloud-debugger - Class Google::Cloud::Debugger::Project (v0.42.2)

Reference documentation and code samples for the google-cloud-debugger class Google::Cloud::Debugger::Project.

## Project

Projects are top-level containers in Google Cloud Platform. They store
information about billing and authorized users, and they control access
to Stackdriver Debugger resources. Each project has a friendly name and
a unique ID. Projects can be created only in the [Google Developers
Console](https://console.developers.google.com).

See Google::Cloud#debugger

## Inherits

- Object

## Example

```ruby
require "google/cloud/debugger"

debugger = Google::Cloud::Debugger.new
debugger.start
```

## Methods

### #agent

    def agent()

The Stackdriver Debugger Agent object.

### #attach

    def attach()

**Alias Of** : [#start](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger/latest/Google-Cloud-Debugger-Project#Google__Cloud__Debugger__Project_start_instance_) Start the Stackdriver Debugger Agent.


<br />

See [Agent#start](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger/latest/Google-Cloud-Debugger-Agent#Google__Cloud__Debugger__Agent_start_instance_ "Google::Cloud::Debugger::Agent#start (method)") for more details.
**Example**

```ruby
require "google/cloud/debugger"

debugger = Google::Cloud::Debugger.new
debugger.start
```

### #project

    def project() -> String

**Alias Of** : [#project_id](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger/latest/Google-Cloud-Debugger-Project#Google__Cloud__Debugger__Project_project_id_instance_) The ID of the current project.
**Returns**

- (String) --- the Google Cloud project ID
**Example**

```ruby
require "google/cloud/debugger"

debugger = Google::Cloud::Debugger.new(
  project_id: "my-project",
  credentials: "/path/to/keyfile.json"
)

debugger.project_id #=> "my-project"
```

### #project_id

    def project_id() -> String

**Aliases**

- [#project](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger/latest/Google-Cloud-Debugger-Project#Google__Cloud__Debugger__Project_project_instance_)
The ID of the current project.
**Returns**

- (String) --- the Google Cloud project ID
**Example**

```ruby
require "google/cloud/debugger"

debugger = Google::Cloud::Debugger.new(
  project_id: "my-project",
  credentials: "/path/to/keyfile.json"
)

debugger.project_id #=> "my-project"
```

### #start

    def start()

**Aliases**

- [#attach](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger/latest/Google-Cloud-Debugger-Project#Google__Cloud__Debugger__Project_attach_instance_)
Start the Stackdriver Debugger Agent.


<br />

See [Agent#start](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger/latest/Google-Cloud-Debugger-Agent#Google__Cloud__Debugger__Agent_start_instance_ "Google::Cloud::Debugger::Agent#start (method)") for more details.
**Example**

```ruby
require "google/cloud/debugger"

debugger = Google::Cloud::Debugger.new
debugger.start
```

### #stop

    def stop()

Stop the Stackdriver Debugger Agent.


<br />

See [Agent#stop](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger/latest/Google-Cloud-Debugger-Agent#Google__Cloud__Debugger__Agent_stop_instance_ "Google::Cloud::Debugger::Agent#stop (method)") for more details.
**Example**

```ruby
require "google/cloud/debugger"

debugger = Google::Cloud::Debugger.new
debugger.start
debugger.stop
```