Sha256: 125a0ab784e531e676e7d37f93b99950d8cbfb550fff1f3896b5b1be3b784cb6
Contents?: true
Size: 372 Bytes
Versions: 35
Compression:
Stored size: 372 Bytes
Contents
module CloudSesame module Query module Node class Page < Abstract attr_writer :page, :size, :start def page @page ||= context[:page] || 1 end def size @size ||= context[:size] || 10 end def start @start ||= (page - 1) * size end def compile { start: start, size: size } end end end end end
Version data entries
35 entries across 35 versions & 1 rubygems