Module: ApiOnlyPagination

Defined in:
lib/api_only_pagination/paginated_data.rb,
lib/api_only_pagination.rb,
lib/api_only_pagination/version.rb,
lib/api_only_pagination/paginate.rb,
lib/api_only_pagination/pagination.rb,
lib/api_only_pagination/configuration.rb,
lib/api_only_pagination/active_record_paginate.rb

Overview

Main module

Defined Under Namespace

Modules: ActiveRecordPaginate Classes: Configuration, Paginate, PaginatedData, Pagination

Constant Summary collapse

VERSION =
"0.1.4"

Class Method Summary collapse

Class Method Details

.configurationObject



13
14
15
# File 'lib/api_only_pagination.rb', line 13

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



17
18
19
# File 'lib/api_only_pagination.rb', line 17

def configure
  yield(configuration)
end

.resetObject



21
22
23
# File 'lib/api_only_pagination.rb', line 21

def reset
  @configuration = Configuration.new
end