Class: Virtuozzo::SOAP::Types::Resourcem::Sys_infoType::Swap

Inherits:
ResourceType_
  • Object
show all
Defined in:
lib/virtuozzo/soap/types/resourcem.rb

Overview

inner class for member: swap http://www.swsoft.com/webservices/vzl/4.0.0/typesswap

total - SOAP::SOAPLong
used - SOAP::SOAPLong

Instance Attribute Summary collapse

Attributes inherited from ResourceType_

#avg, #free, #max, #min

Instance Method Summary collapse

Constructor Details

#initialize(total = nil, used = nil) ⇒ Swap

Returns a new instance of Swap.



636
637
638
639
# File 'lib/virtuozzo/soap/types/resourcem.rb', line 636

def initialize(total = nil, used = nil)
  @total = total
  @used = used
end

Instance Attribute Details

#totalObject

Returns the value of attribute total.



633
634
635
# File 'lib/virtuozzo/soap/types/resourcem.rb', line 633

def total
  @total
end

#usedObject

Returns the value of attribute used.



634
635
636
# File 'lib/virtuozzo/soap/types/resourcem.rb', line 634

def used
  @used
end