Class: GogoKit::PagedResource
- Defined in:
- lib/gogokit/paged_resource.rb
Overview
Base class for pages of resources returned in API responses
Instance Attribute Summary collapse
-
#items ⇒ Object
Returns the value of attribute items.
-
#page ⇒ Object
Returns the value of attribute page.
-
#page_size ⇒ Object
Returns the value of attribute page_size.
-
#total_items ⇒ Object
Returns the value of attribute total_items.
Attributes inherited from Resource
Instance Attribute Details
#items ⇒ Object
Returns the value of attribute items.
8 9 10 |
# File 'lib/gogokit/paged_resource.rb', line 8 def items @items end |
#page ⇒ Object
Returns the value of attribute page.
8 9 10 |
# File 'lib/gogokit/paged_resource.rb', line 8 def page @page end |
#page_size ⇒ Object
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_items ⇒ Object
Returns the value of attribute total_items.
8 9 10 |
# File 'lib/gogokit/paged_resource.rb', line 8 def total_items @total_items end |