module CyberCoach::Pageable::ClassMethods

The class methods to install.

CRUD

↑ top

Public Instance Methods

read_all(options = {}, invalidate = true) click to toggle source

Returns the first page of resources.

options

A hash of options to send with the request.

invalidate

Invalidates it when true, skips invalidation when false.

# File lib/cybercoach/pageable.rb, line 26
def read_all(options = {}, invalidate = true)
  page = ResourcePage.new(type: self)
  page.read(options, invalidate)
  page
end