Class: Hpe3parSdk::PrivateSpace
- Inherits:
-
Object
- Object
- Hpe3parSdk::PrivateSpace
- Defined in:
- lib/Hpe3parSdk/models.rb
Instance Attribute Summary collapse
-
#base ⇒ Object
- type - Number
-
Base space in MiB.
-
#raw_base ⇒ Object
- type - Number
-
Raw base space in MiB.
-
#raw_snapshot ⇒ Object
- type - Number
-
Raw snapshot space in MiB.
-
#snapshot ⇒ Object
- type - Number
-
snapshot space in MiB.
Instance Method Summary collapse
-
#initialize(object_hash) ⇒ PrivateSpace
constructor
A new instance of PrivateSpace.
Constructor Details
#initialize(object_hash) ⇒ PrivateSpace
Returns a new instance of PrivateSpace.
1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 |
# File 'lib/Hpe3parSdk/models.rb', line 1664 def initialize(object_hash) if object_hash == nil return end self.base = object_hash['base'] self.raw_base = object_hash['rawBase'] self.snapshot = object_hash['snapshot'] self.raw_snapshot = object_hash['rawSnapshot'] end |
Instance Attribute Details
#base ⇒ Object
- type - Number
-
Base space in MiB.
1650 1651 1652 |
# File 'lib/Hpe3parSdk/models.rb', line 1650 def base @base end |
#raw_base ⇒ Object
- type - Number
-
Raw base space in MiB.
1654 1655 1656 |
# File 'lib/Hpe3parSdk/models.rb', line 1654 def raw_base @raw_base end |
#raw_snapshot ⇒ Object
- type - Number
-
Raw snapshot space in MiB.
1662 1663 1664 |
# File 'lib/Hpe3parSdk/models.rb', line 1662 def raw_snapshot @raw_snapshot end |
#snapshot ⇒ Object
- type - Number
-
snapshot space in MiB.
1658 1659 1660 |
# File 'lib/Hpe3parSdk/models.rb', line 1658 def snapshot @snapshot end |