# LibTmux::WindowSnapshot#id

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/d8ce4bbee0ca7748a81929f81f7d8d07f8c51267/gems/libtmux/lib/libtmux/snapshot.rb#L148
- **Page:** https://libtmux.org/en/ruby/v0.1.0.alpha.3/reference/libtmux-windowsnapshot-id/

```
def id: () -> ::String
```

Behavior: Captured records.

Behavior contract: Captured records.

## In other ports

### A window's stable tmux id

- Python: [`libtmux.Window.id`](/en/py/latest/reference/libtmux-window-id/) (property)
- Lua: [`libtmux.SnapshotWindow.id`](/en/lua/latest/reference/libtmux-snapshotwindow-id/) (attribute)
- Rust: [`window.Window.id`](/en/rs/latest/reference/window-window-id/) (method)
- Go: [`tmux.Window.ID`](/en/go/latest/reference/tmux-window-id/) (method)
- Java: [`io.github.libtmux.Window.Window.id`](/en/java/latest/reference/io-github-libtmux-window-window-id/) (method)
- C#: [`LibTmux.Window.Id`](/en/csharp/latest/reference/libtmux-window-id/) (property)
- C++: [`libtmux::Window::id`](/en/cxx/latest/reference/libtmux-window-id-roem/) (method)
- Swift: [`Window.id`](/en/swift/latest/reference/window-id/) (property)
