Class: Aliyun::OSS::Iterator::Buckets

Inherits:
Base
  • Object
show all
Defined in:
lib/aliyun/oss/iterator.rb

Overview

Buckets iterator

Instance Method Summary collapse

Methods inherited from Base

#initialize, #next, #to_enum

Constructor Details

This class inherits a constructor from Aliyun::OSS::Iterator::Base

Instance Method Details

#fetch(more) ⇒ Object



48
49
50
51
52
# File 'lib/aliyun/oss/iterator.rb', line 48

def fetch(more)
  @results, cont = @protocol.list_buckets(more)
  @more[:marker] = cont[:next_marker]
  @more[:truncated] = cont[:truncated] || false
end