class AliyunSDK::OSS::Iterator::Uploads
Uploads
iterator
Public Class Methods
new(protocol, bucket_name, opts = {})
click to toggle source
Calls superclass method
AliyunSDK::OSS::Iterator::Base::new
# File lib/aliyun_sdk/oss/iterator.rb, line 75 def initialize(protocol, bucket_name, opts = {}) super(protocol, opts) @bucket = bucket_name end
Public Instance Methods
fetch(more)
click to toggle source
# File lib/aliyun_sdk/oss/iterator.rb, line 80 def fetch(more) @results, cont = @protocol.list_multipart_uploads(@bucket, more) @results = cont[:common_prefixes] + @results if cont[:common_prefixes] @more[:id_marker] = cont[:next_id_marker] @more[:key_marker] = cont[:next_key_marker] @more[:truncated] = cont[:truncated] || false end