Class: VCloudSdk::Resources

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_vcloud_sdk/resources.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cpu, memory) ⇒ Resources

Returns a new instance of Resources.



7
8
9
10
# File 'lib/ruby_vcloud_sdk/resources.rb', line 7

def initialize(cpu, memory)
  @cpu = cpu
  @memory = memory
end

Instance Attribute Details

#cpuObject (readonly)

Returns the value of attribute cpu.



4
5
6
# File 'lib/ruby_vcloud_sdk/resources.rb', line 4

def cpu
  @cpu
end

#memoryObject (readonly)

Returns the value of attribute memory.



5
6
7
# File 'lib/ruby_vcloud_sdk/resources.rb', line 5

def memory
  @memory
end