Sha256: bc342dd2c784335bc3a2a5eb6b6de0464f1f787707d38ba51f3474e337c84b77

Contents?: true

Size: 604 Bytes

Versions: 15

Compression:

Stored size: 604 Bytes

Contents

require 'fog/core/collection'
require 'fog/storm_on_demand/models/storage/volume'

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

15 entries across 15 versions & 4 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/storm_on_demand/models/storage/volumes.rb
fog-1.25.0 lib/fog/storm_on_demand/models/storage/volumes.rb
nsidc-fog-1.24.1 lib/fog/storm_on_demand/models/storage/volumes.rb
fog-1.24.0 lib/fog/storm_on_demand/models/storage/volumes.rb
ns-fog-1.22.11 lib/fog/storm_on_demand/models/storage/volumes.rb
ns-fog-1.22.10 lib/fog/storm_on_demand/models/storage/volumes.rb
ns-fog-1.22.9 lib/fog/storm_on_demand/models/storage/volumes.rb
ns-fog-1.22.8 lib/fog/storm_on_demand/models/storage/volumes.rb
ns-fog-1.22.7 lib/fog/storm_on_demand/models/storage/volumes.rb
ns-fog-1.22.6 lib/fog/storm_on_demand/models/storage/volumes.rb
fog-1.23.0 lib/fog/storm_on_demand/models/storage/volumes.rb
ns-fog-1.22.4 lib/fog/storm_on_demand/models/storage/volumes.rb
ns-fog-1.22.3 lib/fog/storm_on_demand/models/storage/volumes.rb
ns-fog-1.22.2 lib/fog/storm_on_demand/models/storage/volumes.rb
fog-1.22.1 lib/fog/storm_on_demand/models/storage/volumes.rb