Class: Azure::Disk

Inherits:
Object
  • Object
show all
Defined in:
lib/azure/service_management/disk.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(disk) ⇒ Disk

Returns a new instance of Disk.



57
58
59
60
# File 'lib/azure/service_management/disk.rb', line 57

def initialize(disk)
  @name = disk.at_css('Name').content
  @attached = disk.at_css('AttachedTo') != nil
end

Instance Attribute Details

#attachedObject

Returns the value of attribute attached.



56
57
58
# File 'lib/azure/service_management/disk.rb', line 56

def attached
  @attached
end

#nameObject

Returns the value of attribute name.



56
57
58
# File 'lib/azure/service_management/disk.rb', line 56

def name
  @name
end