Class: Azure::Disk
- Inherits:
-
Object
- Object
- Azure::Disk
- Defined in:
- lib/azure/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.
57 58 59 60 |
# File 'lib/azure/disk.rb', line 57 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.
56 57 58 |
# File 'lib/azure/disk.rb', line 56 def attached @attached end |
#name ⇒ Object
Returns the value of attribute name.
56 57 58 |
# File 'lib/azure/disk.rb', line 56 def name @name end |