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.
253 254 255 256 |
# File 'lib/canvas-api.rb', line 253 def initialize(api, arr) @api = api super(arr) end |
Instance Attribute Details
#link ⇒ Object
Returns the value of attribute link.
258 259 260 |
# File 'lib/canvas-api.rb', line 258 def link @link end |
#next_endpoint ⇒ Object
Returns the value of attribute next_endpoint.
257 258 259 |
# File 'lib/canvas-api.rb', line 257 def next_endpoint @next_endpoint end |
Instance Method Details
#more? ⇒ Boolean
260 261 262 |
# File 'lib/canvas-api.rb', line 260 def more? !!next_endpoint end |