Module: Droonga::Catalog::Volume
- Defined in:
- lib/droonga/catalog/volume.rb
Class Method Summary collapse
Class Method Details
.create(dataset, raw_volume) ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/droonga/catalog/volume.rb', line 23 def create(dataset, raw_volume) if raw_volume.key?("address") SingleVolume.new(raw_volume) else CollectionVolume.new(dataset, raw_volume) end end |