Sha256: 3c3d7da2d8f69666b8d1721e7a561ebbf4dee64c5fb9fdf5efe22dac1eb58508

Contents?: true

Size: 523 Bytes

Versions: 2

Compression:

Stored size: 523 Bytes

Contents

module Fog
  module Storage
    class StormOnDemand
      class Volumes < Fog::Collection
        model Fog::Storage::StormOnDemand::Volume

        def create(options)
          vol = service.create_volume(options).body
          new(vol)
        end

        def get(uniq_id)
          vol = service.get_volume(:uniq_id => uniq_id).body
          new(vol)
        end

        def all(options = {})
          vols = service.list_volumes(options).body['items']
          load(vols)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-storm_on_demand-0.1.0 lib/fog/storage/storm_on_demand/models/volumes.rb
fog-storm_on_demand-0.0.1 lib/fog/storage/storm_on_demand/models/volumes.rb