Class: Alipan::Iterator::Objects
Instance Method Summary collapse
- #fetch(more) ⇒ Object
-
#initialize(protocol, drive_id, parent_file_id, opts = {}) ⇒ Objects
constructor
A new instance of Objects.
Methods inherited from Base
Constructor Details
#initialize(protocol, drive_id, parent_file_id, opts = {}) ⇒ Objects
Returns a new instance of Objects.
35 36 37 38 39 |
# File 'lib/alipan/iterator.rb', line 35 def initialize(protocol, drive_id, parent_file_id, opts = {}) super(protocol, opts) @drive_id = drive_id @parent_file_id = parent_file_id end |
Instance Method Details
#fetch(more) ⇒ Object
41 42 43 44 45 |
# File 'lib/alipan/iterator.rb', line 41 def fetch(more) @results, cont = @protocol.list_objects(@drive_id, @parent_file_id, more) @more[:marker] = cont[:marker] @more[:truncated] = !cont[:marker].empty? end |