Class: VCloudSdk::InternalDisk
- Inherits:
-
Object
- Object
- VCloudSdk::InternalDisk
- Defined in:
- lib/ruby_vcloud_sdk/internal_disk.rb
Instance Attribute Summary collapse
-
#bus_sub_type ⇒ Object
readonly
Returns the value of attribute bus_sub_type.
-
#bus_type ⇒ Object
readonly
Returns the value of attribute bus_type.
-
#capacity ⇒ Object
readonly
Returns the value of attribute capacity.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(entity_xml) ⇒ InternalDisk
constructor
A new instance of InternalDisk.
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_type ⇒ Object (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_type ⇒ Object (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 |
#capacity ⇒ Object (readonly)
Returns the value of attribute capacity.
4 5 6 |
# File 'lib/ruby_vcloud_sdk/internal_disk.rb', line 4 def capacity @capacity end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/ruby_vcloud_sdk/internal_disk.rb', line 4 def name @name end |