Class: CephStorage::StorageObject::XattrEnumerator

Inherits:
CephRuby::XattrEnumerator
  • Object
show all
Extended by:
RadosWrapper
Defined in:
lib/ceph_storage/storage_object/xattr_enumerator.rb

Overview

Wrapper for RadosObjectEnumerator

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from RadosWrapper

wrap_me

Constructor Details

#initialize(object) ⇒ XattrEnumerator

Returns a new instance of XattrEnumerator.



10
11
12
13
14
# File 'lib/ceph_storage/storage_object/xattr_enumerator.rb', line 10

def initialize(object)
  self.pool_factory = object.pool_factory
  self.object = object
  super(object)
end

Instance Attribute Details

#objectObject

Returns the value of attribute object.



6
7
8
# File 'lib/ceph_storage/storage_object/xattr_enumerator.rb', line 6

def object
  @object
end

#pool_factoryObject

Returns the value of attribute pool_factory.



6
7
8
# File 'lib/ceph_storage/storage_object/xattr_enumerator.rb', line 6

def pool_factory
  @pool_factory
end

Instance Method Details

#eachObject



16
17
18
19
20
21
22
# File 'lib/ceph_storage/storage_object/xattr_enumerator.rb', line 16

def each
  return enum_for(:each) unless block_given?

  super do |x|
    yield object.xattr(x.name)
  end
end

#log(message) ⇒ Object



24
25
26
# File 'lib/ceph_storage/storage_object/xattr_enumerator.rb', line 24

def log(message)
  CephStorage.log("xattr_enumerator #{object.name} #{message}")
end