Class: VagrantPlugins::Deltacloud::Domain::Volume
- Defined in:
- lib/vagrant-deltacloud-provider/client/domain.rb
Instance Attribute Summary collapse
-
#bootable ⇒ Object
Whether volume is bootable or not.
-
#device ⇒ Object
device (e.g. /dev/sdb) if attached.
-
#instance_id ⇒ Object
instance id volume is attached to.
-
#size ⇒ Object
Size in Gigaoctet.
-
#status ⇒ Object
Status (e.g. ‘Available’, ‘In-use’).
Attributes inherited from Item
Instance Method Summary collapse
-
#initialize(id, name, size, status, bootable, instance_id, device) ⇒ Volume
constructor
rubocop:disable Style/ParameterLists.
-
#to_s ⇒ Object
rubocop:enable Style/ParameterLists.
Methods inherited from Item
Constructor Details
#initialize(id, name, size, status, bootable, instance_id, device) ⇒ Volume
rubocop:disable Style/ParameterLists
121 122 123 124 125 126 127 128 |
# File 'lib/vagrant-deltacloud-provider/client/domain.rb', line 121 def initialize(id, name, size, status, bootable, instance_id, device) @size = size @status = status @bootable = bootable @instance_id = instance_id @device = device super(id, name) end |
Instance Attribute Details
#bootable ⇒ Object
Whether volume is bootable or not
108 109 110 |
# File 'lib/vagrant-deltacloud-provider/client/domain.rb', line 108 def bootable @bootable end |
#device ⇒ Object
device (e.g. /dev/sdb) if attached
118 119 120 |
# File 'lib/vagrant-deltacloud-provider/client/domain.rb', line 118 def device @device end |
#instance_id ⇒ Object
instance id volume is attached to
113 114 115 |
# File 'lib/vagrant-deltacloud-provider/client/domain.rb', line 113 def instance_id @instance_id end |
#size ⇒ Object
Size in Gigaoctet
98 99 100 |
# File 'lib/vagrant-deltacloud-provider/client/domain.rb', line 98 def size @size end |
#status ⇒ Object
Status (e.g. ‘Available’, ‘In-use’)
103 104 105 |
# File 'lib/vagrant-deltacloud-provider/client/domain.rb', line 103 def status @status end |
Instance Method Details
#to_s ⇒ Object
rubocop:enable Style/ParameterLists
131 132 133 134 135 136 137 138 139 140 141 |
# File 'lib/vagrant-deltacloud-provider/client/domain.rb', line 131 def to_s { id: @id, name: @name, size: @size, status: @status, bootable: @bootable, instance_id: @instance_id, device: @device }.to_json end |