class SparkApi::Pagination
Pagination
¶ ↑
Simple class representing the API's pagination response object
Attributes
current_page[RW]
page_size[RW]
total_pages[RW]
total_rows[RW]
Public Class Methods
new(hash)
click to toggle source
# File lib/spark_api/paginate.rb, line 101 def initialize(hash) @total_rows = hash["TotalRows"] @page_size = hash["PageSize"] @total_pages = hash["TotalPages"] @current_page = hash["CurrentPage"] end