Sha256: afd1d24b3b5bab19d80c550c393a237884271047fdaa677dc6e5c0987cb82cf7

Contents?: true

Size: 613 Bytes

Versions: 92

Compression:

Stored size: 613 Bytes

Contents

module Fog
  module Compute
    class Ecloud
      class DetachedDisk < Fog::Ecloud::Model
        identity :href

        attribute :name,        :aliases => :Name
        attribute :type,        :aliases => :Type
        attribute :other_links, :aliases => :Links
        attribute :status,      :aliases => :Status
        attribute :size,        :aliases => :Size

        def ready?
          unless status =~ /AttachInProgress|DetachInProgress/
            true
          else
            false
          end
        end

        def id
          href.scan(/\d+/)[0]
        end
      end
    end
  end
end

Version data entries

92 entries across 90 versions & 11 rubygems

Version Path
fog-maestrodev-1.18.0.20131114200144 lib/fog/ecloud/models/compute/detached_disk.rb
gapinc-fog-1.12.1.2.1 lib/fog/ecloud/models/compute/detached_disk.rb
fog-maestrodev-1.18.0.20131112185232 lib/fog/ecloud/models/compute/detached_disk.rb
fog-maestrodev-1.18.0.20131111203459 lib/fog/ecloud/models/compute/detached_disk.rb
fog-1.18.0 lib/fog/ecloud/models/compute/detached_disk.rb
fog-1.17.0 lib/fog/ecloud/models/compute/detached_disk.rb
fog-1.16.0 lib/fog/ecloud/models/compute/detached_disk.rb
fog-maestrodev-1.15.0.20130927082724 lib/fog/ecloud/models/compute/detached_disk.rb
fog-maestrodev-1.15.0.20130829165835 lib/fog/ecloud/models/compute/detached_disk.rb
fog-1.15.0 lib/fog/ecloud/models/compute/detached_disk.rb
gapinc-fog-1.14.0 lib/fog/ecloud/models/compute/detached_disk.rb
fog-maestrodev-1.14.0.20130806165225 lib/fog/ecloud/models/compute/detached_disk.rb
fog-1.14.0 lib/fog/ecloud/models/compute/detached_disk.rb
fog-1.13.0 lib/fog/ecloud/models/compute/detached_disk.rb
gapinc-fog-1.12.1.2 lib/fog/ecloud/models/compute/detached_disk.rb
gapinc-fog-1.12.1.1 lib/fog/ecloud/models/compute/detached_disk.rb
gapinc-fog-1.12.1a lib/fog/ecloud/models/compute/detached_disk.rb
gapinc-fog-1.12.1 lib/fog/ecloud/models/compute/detached_disk.rb
fog-1.12.1 lib/fog/ecloud/models/compute/detached_disk.rb
fog-1.12.0 lib/fog/ecloud/models/compute/detached_disk.rb