class Grape::Formatter::Paginater::BasePage
Attributes
code[RW]
content[RW]
links[RW]
next_page[RW]
page[RW]
prev_page[RW]
size[RW]
Public Class Methods
new() { |self| ... }
click to toggle source
# File lib/paginater/page/base_page.rb, line 11 def initialize yield self if block_given? end
Public Instance Methods
count()
click to toggle source
# File lib/paginater/page/base_page.rb, line 21 def count @content.count ||= 1 end
render()
click to toggle source
TODO: implement me…
# File lib/paginater/page/base_page.rb, line 25 def render @code.call self end