Class: Noiseless::AST::Paginate

Inherits:
Node
  • Object
show all
Defined in:
lib/noiseless/ast/paginate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#to_h

Constructor Details

#initialize(page, per_page) ⇒ Paginate

Returns a new instance of Paginate.



8
9
10
11
12
# File 'lib/noiseless/ast/paginate.rb', line 8

def initialize(page, per_page)
  super()
  @page = page
  @per_page = per_page
end

Instance Attribute Details

#pageObject (readonly)

Returns the value of attribute page.



6
7
8
# File 'lib/noiseless/ast/paginate.rb', line 6

def page
  @page
end

#per_pageObject (readonly)

Returns the value of attribute per_page.



6
7
8
# File 'lib/noiseless/ast/paginate.rb', line 6

def per_page
  @per_page
end