class Comet::Partition
def to_hash
-
(Hash)
- The complete object as a Ruby hash
def to_hash ret = {} ret['DeviceName'] = @device_name ret['Filesystem'] = @filesystem ret['VolumeName'] = @volume_name ret['VolumeGuid'] = @volume_guid ret['VolumeSerial'] = @volume_serial ret['MountPoints'] = @mount_points ret['ReadOffset'] = @read_offset ret['Size'] = @size ret['UsedSize'] = @used_size ret['Flags'] = @flags ret['BytesPerFilesystemCluster'] = @bytes_per_filesystem_cluster @unknown_json_fields.each do |k, v| ret[k] = v end ret end