2017-01-25 23:16:22 +01:00
|
|
|
---
|
|
|
|
title: topPeer
|
|
|
|
description: topPeer attributes, type and example
|
|
|
|
---
|
|
|
|
## Constructor: topPeer
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required |
|
|
|
|
|----------|:-------------:|---------:|
|
2017-03-11 19:54:51 +01:00
|
|
|
|peer|[Peer](../types/Peer.md) | Yes|
|
|
|
|
|rating|[double](../types/double.md) | Yes|
|
2017-01-25 23:16:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [TopPeer](../types/TopPeer.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```
|
|
|
|
$topPeer = ['_' => 'topPeer', 'peer' => Peer, 'rating' => double, ];
|
|
|
|
```
|
|
|
|
|
2017-03-11 19:54:51 +01:00
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
topPeer={_='topPeer', peer=Peer, rating=double, }
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|