Class: VCloudSdk::InternalDisk

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_vcloud_sdk/internal_disk.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entity_xml) ⇒ InternalDisk

Returns a new instance of InternalDisk.



6
7
8
9
10
11
# File 'lib/ruby_vcloud_sdk/internal_disk.rb', line 6

def initialize(entity_xml)
  @name = entity_xml.element_name
  @capacity = entity_xml.host_resource.attribute("capacity").to_s.to_i
  @bus_type = entity_xml.host_resource.attribute("busType").to_s
  @bus_sub_type = entity_xml.host_resource.attribute("busSubType").to_s
end

Instance Attribute Details

#bus_sub_typeObject (readonly)

Returns the value of attribute bus_sub_type.



4
5
6
# File 'lib/ruby_vcloud_sdk/internal_disk.rb', line 4

def bus_sub_type
  @bus_sub_type
end

#bus_typeObject (readonly)

Returns the value of attribute bus_type.



4
5
6
# File 'lib/ruby_vcloud_sdk/internal_disk.rb', line 4

def bus_type
  @bus_type
end

#capacityObject (readonly)

Returns the value of attribute capacity.



4
5
6
# File 'lib/ruby_vcloud_sdk/internal_disk.rb', line 4

def capacity
  @capacity
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/ruby_vcloud_sdk/internal_disk.rb', line 4

def name
  @name
end