Class: Azure::Disk
- Inherits:
-
Object
- Object
- Azure::Disk
- Defined in:
- lib/azure/service_management/disk.rb
Instance Attribute Summary collapse
-
#attached ⇒ Object
Returns the value of attribute attached.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(disk) ⇒ Disk
constructor
A new instance of Disk.
Constructor Details
#initialize(disk) ⇒ Disk
Returns a new instance of Disk.
63 64 65 66 |
# File 'lib/azure/service_management/disk.rb', line 63 def initialize(disk) @name = disk.at_css("Name").content @attached = !disk.at_css("AttachedTo").nil? end |
Instance Attribute Details
#attached ⇒ Object
Returns the value of attribute attached.
62 63 64 |
# File 'lib/azure/service_management/disk.rb', line 62 def attached @attached end |
#name ⇒ Object
Returns the value of attribute name.
62 63 64 |
# File 'lib/azure/service_management/disk.rb', line 62 def name @name end |