# LibTmux::PaneSnapshot#window_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-panesnapshot-window_id/

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

Behavior: Captured records.

Behavior contract: Captured records.

## In other ports

### The id of the window holding a pane

- Python: [`libtmux.Pane.window_id`](/en/py/latest/reference/libtmux-pane-window_id/) (attribute)
- Lua: [`libtmux.SnapshotPane.window_id`](/en/lua/latest/reference/libtmux-snapshotpane-window_id/) (attribute)
- Rust: [`pane.Pane.window_id`](/en/rs/latest/reference/pane-pane-window_id/) (method)
- Go: [`tmux.Pane.WindowID`](/en/go/latest/reference/tmux-pane-windowid/) (method)
- C++: [`libtmux::Pane::window_id`](/en/cxx/latest/reference/libtmux-pane-window_id-1v4v/) (method)
- Swift: [`Pane.windowID`](/en/swift/latest/reference/pane-windowid/) (property)
