Class: VCloudSdk::Resources
- Inherits:
-
Object
- Object
- VCloudSdk::Resources
- Defined in:
- lib/ruby_vcloud_sdk/resources.rb
Instance Attribute Summary collapse
-
#cpu ⇒ Object
readonly
Returns the value of attribute cpu.
-
#memory ⇒ Object
readonly
Returns the value of attribute memory.
Instance Method Summary collapse
-
#initialize(cpu, memory) ⇒ Resources
constructor
A new instance of Resources.
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
#cpu ⇒ Object (readonly)
Returns the value of attribute cpu.
4 5 6 |
# File 'lib/ruby_vcloud_sdk/resources.rb', line 4 def cpu @cpu end |
#memory ⇒ Object (readonly)
Returns the value of attribute memory.
5 6 7 |
# File 'lib/ruby_vcloud_sdk/resources.rb', line 5 def memory @memory end |