Class: GogoKit::PagedResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/gogokit/paged_resource.rb

Overview

Base class for pages of resources returned in API responses

Instance Attribute Summary collapse

Attributes inherited from Resource

#links

Instance Attribute Details

#itemsObject

Returns the value of attribute items.



8
9
10
# File 'lib/gogokit/paged_resource.rb', line 8

def items
  @items
end

#pageObject

Returns the value of attribute page.



8
9
10
# File 'lib/gogokit/paged_resource.rb', line 8

def page
  @page
end

#page_sizeObject

Returns the value of attribute page_size.



8
9
10
# File 'lib/gogokit/paged_resource.rb', line 8

def page_size
  @page_size
end

#total_itemsObject

Returns the value of attribute total_items.



8
9
10
# File 'lib/gogokit/paged_resource.rb', line 8

def total_items
  @total_items
end