Class: Quickeebooks::Online::Service::Pagination

Inherits:
Object
  • Object
show all
Defined in:
lib/quickeebooks/online/service/pagination.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(page, results_per_page) ⇒ Pagination

Returns a new instance of Pagination.



7
8
9
10
# File 'lib/quickeebooks/online/service/pagination.rb', line 7

def initialize(page, results_per_page)
  @page = page
  @results_per_page = results_per_page
end

Instance Attribute Details

#pageObject

Returns the value of attribute page.



5
6
7
# File 'lib/quickeebooks/online/service/pagination.rb', line 5

def page
  @page
end

#results_per_pageObject

Returns the value of attribute results_per_page.



5
6
7
# File 'lib/quickeebooks/online/service/pagination.rb', line 5

def results_per_page
  @results_per_page
end

Instance Method Details

#to_sObject



12
13
14
# File 'lib/quickeebooks/online/service/pagination.rb', line 12

def to_s
  "PageNum=#{@page}\nResultsPerPage=#{@results_per_page}"
end