Class: Pvectl::Models::VolumeOperationResult
- Inherits:
-
OperationResult
- Object
- Base
- OperationResult
- Pvectl::Models::VolumeOperationResult
- Defined in:
- lib/pvectl/models/volume_operation_result.rb
Overview
Represents the result of a set/edit operation on a volume.
Extends OperationResult with volume-specific attribute.
Instance Attribute Summary collapse
-
#volume ⇒ Models::Volume?
readonly
The volume this result is for.
Attributes inherited from OperationResult
#error, #operation, #resource, #success, #task, #task_upid
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ VolumeOperationResult
constructor
Creates a new VolumeOperationResult.
Methods inherited from OperationResult
#failed?, #message, #partial?, #pending?, #status_text, #successful?
Constructor Details
#initialize(attrs = {}) ⇒ VolumeOperationResult
Creates a new VolumeOperationResult.
20 21 22 23 |
# File 'lib/pvectl/models/volume_operation_result.rb', line 20 def initialize(attrs = {}) super @volume = @attributes[:volume] end |
Instance Attribute Details
#volume ⇒ Models::Volume? (readonly)
Returns The volume this result is for.
15 16 17 |
# File 'lib/pvectl/models/volume_operation_result.rb', line 15 def volume @volume end |