Class: Rados::ObjectCollection

Inherits:
Object
  • Object
show all
Defined in:
lib/rados.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pool) ⇒ ObjectCollection

Returns a new instance of ObjectCollection.



83
84
85
# File 'lib/rados.rb', line 83

def initialize(pool)
  @pool = pool
end

Instance Attribute Details

#poolObject (readonly)

Returns the value of attribute pool.



81
82
83
# File 'lib/rados.rb', line 81

def pool
  @pool
end

Instance Method Details

#find(oid) ⇒ Object



87
88
89
# File 'lib/rados.rb', line 87

def find(oid)
  Object.new(:id => oid, :pool => pool)
end

#new(oid = nil) ⇒ Object



91
92
93
# File 'lib/rados.rb', line 91

def new(oid = nil)
  Object.new(:id => oid, :pool => pool)
end