Sha256: 595a73d48c4ac6afcb7ce7eb64f240b461b492d47ffab90a49d290575d623e2b

Contents?: true

Size: 664 Bytes

Versions: 25

Compression:

Stored size: 664 Bytes

Contents

Collection
===

A collection contains multiple items.

You can use any method that you also could call on an array (like count, [0], first etc.).

## Total

`total` provides total amount of items (even if paginated).

## Limit

`limit` provides amount of items per page.

## Offset

`offset` provides how many items where skipped to start the current page.

## Offset / Limit / Pagination

You can paginate by passing offset, and limit params. They will be forwarded to the backend.

```ruby
data = Feedback.where(limit: 50) #<LHS::Data @_proxy=#<LHS::Collection>>
data.count // 50
Feedback.where(limit: 50, offset: 51) #<LHS::Data @_proxy=#<LHS::Collection>>
```

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
lhs-2.2.2 docs/collections.md
lhs-1.6.1 docs/collections.md
lhs-2.2.1 docs/collections.md
lhs-2.2.0 docs/collections.md
lhs-1.6.0 docs/collections.md
lhs-2.1.1 docs/collections.md
lhs-2.1.0 docs/collections.md
lhs-2.0.5 docs/collections.md
lhs-2.0.4 docs/collections.md
lhs-2.0.3 docs/collections.md
lhs-2.0.2 docs/collections.md
lhs-2.0.1 docs/collections.md
lhs-2.0.0 docs/collections.md
lhs-1.5.0 docs/collections.md
lhs-1.4.0 docs/collections.md
lhs-1.3.1 docs/collections.md
lhs-1.3.0 docs/collections.md
lhs-1.2.3 docs/collections.md
lhs-1.2.2 docs/collections.md
lhs-1.2.1 docs/collections.md