# LibTmux::PaneSnapshot#window_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-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)
