Class: Canvas::ResultSet
- Inherits:
-
Array
- Object
- Array
- Canvas::ResultSet
- Defined in:
- lib/canvas-api.rb
Instance Attribute Summary collapse
-
#link ⇒ Object
Returns the value of attribute link.
-
#next_endpoint ⇒ Object
Returns the value of attribute next_endpoint.
Instance Method Summary collapse
-
#initialize(api, arr) ⇒ ResultSet
constructor
A new instance of ResultSet.
- #more? ⇒ Boolean
- #next_page! ⇒ Object
Constructor Details
#initialize(api, arr) ⇒ ResultSet
Returns a new instance of ResultSet.
260 261 262 263 |
# File 'lib/canvas-api.rb', line 260 def initialize(api, arr) @api = api super(arr) end |
Instance Attribute Details
#link ⇒ Object
Returns the value of attribute link.
265 266 267 |
# File 'lib/canvas-api.rb', line 265 def link @link end |
#next_endpoint ⇒ Object
Returns the value of attribute next_endpoint.
264 265 266 |
# File 'lib/canvas-api.rb', line 264 def next_endpoint @next_endpoint end |
Instance Method Details
#more? ⇒ Boolean
267 268 269 |
# File 'lib/canvas-api.rb', line 267 def more? !!next_endpoint end |