Class: Datacenter::Machine::DiskPartition

Inherits:
Object
  • Object
show all
Defined in:
lib/datacenter/machine.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#availableObject (readonly)

Returns the value of attribute available.



108
109
110
# File 'lib/datacenter/machine.rb', line 108

def available
  @available
end

#filesystemObject (readonly)

Returns the value of attribute filesystem.



108
109
110
# File 'lib/datacenter/machine.rb', line 108

def filesystem
  @filesystem
end

#mountedObject (readonly)

Returns the value of attribute mounted.



108
109
110
# File 'lib/datacenter/machine.rb', line 108

def mounted
  @mounted
end

#sizeObject (readonly)

Returns the value of attribute size.



108
109
110
# File 'lib/datacenter/machine.rb', line 108

def size
  @size
end

#typeObject (readonly)

Returns the value of attribute type.



108
109
110
# File 'lib/datacenter/machine.rb', line 108

def type
  @type
end

#usedObject (readonly)

Returns the value of attribute used.



108
109
110
# File 'lib/datacenter/machine.rb', line 108

def used
  @used
end

#used_percentageObject (readonly)

Returns the value of attribute used_percentage.



108
109
110
# File 'lib/datacenter/machine.rb', line 108

def used_percentage
  @used_percentage
end