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.



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

#attachedObject

Returns the value of attribute attached.



62
63
64
# File 'lib/azure/service_management/disk.rb', line 62

def attached
  @attached
end

#nameObject

Returns the value of attribute name.



62
63
64
# File 'lib/azure/service_management/disk.rb', line 62

def name
  @name
end