ibanity v0.6.0 Ibanity.Collection

Container for collection of resources results.

Link to this section Summary

Link to this section Functions

Link to this function

first(collection, application \\ :default)

Fetches the first results

Returns {:ok, collection} if successful, {:error, reason} otherwise.

Link to this function

new(items, paging, links, synchronized_at \\ nil, latest_synchronization \\ nil)

Link to this function

next(collection, application \\ :default)

Fetches the next results.

Returns {:ok, collection} if successful, nil if there's no more elements to fetch, {:error, reason} otherwise.

Link to this function

previous(collection, application \\ :default)

Fetches the previous results

Returns {:ok, collection} if successful, nil if there's no previous elements to fetch, {:error, reason} otherwise.