Sha256: 506e8d02775c3e0f9802096e6e456d24978251b74b877f417d99efb1eb5bb6bf

Contents?: true

Size: 457 Bytes

Versions: 15

Compression:

Stored size: 457 Bytes

Contents

require "fog/brightbox/models/compute/volume"

module Fog
  module Brightbox
    class Compute
      class Volumes < Fog::Collection
        model Fog::Brightbox::Compute::Volume

        def all
          data = service.list_volumes
          load(data)
        end

        def get(identifier)
          data = service.get_volume(identifier)
          new(data)
        rescue Excon::Errors::NotFound
          nil
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
fog-brightbox-1.12.0 lib/fog/brightbox/models/compute/volumes.rb
fog-brightbox-1.11.0 lib/fog/brightbox/models/compute/volumes.rb
fog-brightbox-1.10.0 lib/fog/brightbox/models/compute/volumes.rb
fog-brightbox-1.9.1 lib/fog/brightbox/models/compute/volumes.rb
fog-brightbox-1.9.0 lib/fog/brightbox/models/compute/volumes.rb
fog-brightbox-1.8.2 lib/fog/brightbox/models/compute/volumes.rb
fog-brightbox-1.8.1 lib/fog/brightbox/models/compute/volumes.rb
fog-brightbox-1.8.0 lib/fog/brightbox/models/compute/volumes.rb
fog-brightbox-1.7.3 lib/fog/brightbox/models/compute/volumes.rb
fog-brightbox-1.7.2 lib/fog/brightbox/models/compute/volumes.rb
fog-brightbox-1.7.1 lib/fog/brightbox/models/compute/volumes.rb
fog-brightbox-1.7.0 lib/fog/brightbox/models/compute/volumes.rb
fog-brightbox-1.6.0 lib/fog/brightbox/models/compute/volumes.rb
fog-brightbox-1.5.0 lib/fog/brightbox/models/compute/volumes.rb
fog-brightbox-1.5.0.rc1 lib/fog/brightbox/models/compute/volumes.rb