Class: Quickeebooks::Online::Service::Pagination
- Inherits:
-
Object
- Object
- Quickeebooks::Online::Service::Pagination
- Defined in:
- lib/quickeebooks/online/service/pagination.rb
Instance Attribute Summary collapse
-
#page ⇒ Object
Returns the value of attribute page.
-
#results_per_page ⇒ Object
Returns the value of attribute results_per_page.
Instance Method Summary collapse
-
#initialize(page, results_per_page) ⇒ Pagination
constructor
A new instance of Pagination.
- #to_s ⇒ Object
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
#page ⇒ Object
Returns the value of attribute page.
5 6 7 |
# File 'lib/quickeebooks/online/service/pagination.rb', line 5 def page @page end |
#results_per_page ⇒ Object
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_s ⇒ Object
12 13 14 |
# File 'lib/quickeebooks/online/service/pagination.rb', line 12 def to_s "PageNum=#{@page}\nResultsPerPage=#{@results_per_page}" end |