Class: Virtuozzo::SOAP::Drivers::Device::ResourceType

Inherits:
Object
  • Object
show all
Defined in:
lib/virtuozzo/soap/drivers/device/types.rb

Overview

http://www.swsoft.com/webservices/vzl/4.0.0/typesresourceType

total - SOAP::SOAPLong
used - SOAP::SOAPLong
free - SOAP::SOAPLong
avg - SOAP::SOAPLong
min - SOAP::SOAPLong
max - SOAP::SOAPLong

Direct Known Subclasses

Sys_infoType::Memory, Sys_infoType::Swap

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(total = nil, used = nil, free = nil, avg = nil, min = nil, max = nil) ⇒ ResourceType

Returns a new instance of ResourceType.



1095
1096
1097
1098
1099
1100
1101
1102
# File 'lib/virtuozzo/soap/drivers/device/types.rb', line 1095

def initialize(total = nil, used = nil, free = nil, avg = nil, min = nil, max = nil)
  @total = total
  @used = used
  @free = free
  @avg = avg
  @min = min
  @max = max
end

Instance Attribute Details

#avgObject

Returns the value of attribute avg.



1091
1092
1093
# File 'lib/virtuozzo/soap/drivers/device/types.rb', line 1091

def avg
  @avg
end

#freeObject

Returns the value of attribute free.



1090
1091
1092
# File 'lib/virtuozzo/soap/drivers/device/types.rb', line 1090

def free
  @free
end

#maxObject

Returns the value of attribute max.



1093
1094
1095
# File 'lib/virtuozzo/soap/drivers/device/types.rb', line 1093

def max
  @max
end

#minObject

Returns the value of attribute min.



1092
1093
1094
# File 'lib/virtuozzo/soap/drivers/device/types.rb', line 1092

def min
  @min
end

#totalObject

Returns the value of attribute total.



1088
1089
1090
# File 'lib/virtuozzo/soap/drivers/device/types.rb', line 1088

def total
  @total
end

#usedObject

Returns the value of attribute used.



1089
1090
1091
# File 'lib/virtuozzo/soap/drivers/device/types.rb', line 1089

def used
  @used
end