# LibTmux::WindowSnapshot#id

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/dcc9f8b5a6970144a9e7d80cd5f381d8f6198372/gems/libtmux/lib/libtmux/snapshot.rb#L148
- **Page:** https://libtmux.org/en/ruby/v0.1.0.alpha.2/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)
