Module: CyberCoach::Pageable::ClassMethods

Defined in:
lib/cybercoach/pageable.rb

Overview

The class methods to install.

Instance Method Summary collapse

Instance Method Details

#read_all(options = {}) ⇒ Object

:category: CRUD

Returns the first page of resources.

options

A hash of options to send with the request.



25
26
27
28
29
# File 'lib/cybercoach/pageable.rb', line 25

def read_all(options = {})
  page = ResourcePage.new(self)
  page.read(options)
  page
end