Class: CephStorage::StorageObject::XattrEnumerator
- Inherits:
-
CephRuby::XattrEnumerator
- Object
- CephRuby::XattrEnumerator
- CephStorage::StorageObject::XattrEnumerator
- Extended by:
- RadosWrapper
- Defined in:
- lib/ceph_storage/storage_object/xattr_enumerator.rb
Overview
Wrapper for RadosObjectEnumerator
Instance Attribute Summary collapse
-
#object ⇒ Object
Returns the value of attribute object.
-
#pool_factory ⇒ Object
Returns the value of attribute pool_factory.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(object) ⇒ XattrEnumerator
constructor
A new instance of XattrEnumerator.
- #log(message) ⇒ Object
Methods included from RadosWrapper
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
#object ⇒ Object
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_factory ⇒ Object
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
#each ⇒ Object
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() CephStorage.log("xattr_enumerator #{object.name} #{}") end |