# LibTmux::WindowSnapshot#id

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

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

Behavior: Captured records.

Behavior contract: Captured records.

## In other ports

A window's stable tmux id

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Window.id`](/en/py/latest/reference/libtmux-window-id/) (property) |
| Lua | [`libtmux.SnapshotWindow.id`](/en/lua/latest/reference/libtmux-snapshotwindow-id/) (attribute) |
| Elixir | [`LibTmux.Window.id`](/en/elixir/latest/reference/libtmux-window-id/) (property) |
| TypeScript | no accessor; the field is read from `Window.format`, tmux's own row |
| 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.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) |

No equivalent is recorded in PowerShell, Julia, Kotlin, Scala or F#.
