Class: Datacenter::Machine::DiskPartition
- Inherits:
-
Object
- Object
- Datacenter::Machine::DiskPartition
- Defined in:
- lib/datacenter/machine.rb
Instance Attribute Summary collapse
-
#available ⇒ Object
readonly
Returns the value of attribute available.
-
#filesystem ⇒ Object
readonly
Returns the value of attribute filesystem.
-
#mounted ⇒ Object
readonly
Returns the value of attribute mounted.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#used ⇒ Object
readonly
Returns the value of attribute used.
-
#used_percentage ⇒ Object
readonly
Returns the value of attribute used_percentage.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ DiskPartition
constructor
A new instance of DiskPartition.
Constructor Details
#initialize(attributes) ⇒ DiskPartition
Returns a new instance of DiskPartition.
110 111 112 113 114 |
# File 'lib/datacenter/machine.rb', line 110 def initialize(attributes) attributes.each do |name, value| instance_variable_set "@#{name}", value if respond_to? name end end |
Instance Attribute Details
#available ⇒ Object (readonly)
Returns the value of attribute available.
108 109 110 |
# File 'lib/datacenter/machine.rb', line 108 def available @available end |
#filesystem ⇒ Object (readonly)
Returns the value of attribute filesystem.
108 109 110 |
# File 'lib/datacenter/machine.rb', line 108 def filesystem @filesystem end |
#mounted ⇒ Object (readonly)
Returns the value of attribute mounted.
108 109 110 |
# File 'lib/datacenter/machine.rb', line 108 def mounted @mounted end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
108 109 110 |
# File 'lib/datacenter/machine.rb', line 108 def size @size end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
108 109 110 |
# File 'lib/datacenter/machine.rb', line 108 def type @type end |
#used ⇒ Object (readonly)
Returns the value of attribute used.
108 109 110 |
# File 'lib/datacenter/machine.rb', line 108 def used @used end |
#used_percentage ⇒ Object (readonly)
Returns the value of attribute used_percentage.
108 109 110 |
# File 'lib/datacenter/machine.rb', line 108 def used_percentage @used_percentage end |