lib/openstack/compute/flavor.rb in openstack-compute-1.1.5 vs lib/openstack/compute/flavor.rb in openstack-compute-1.1.6

- old
+ new

@@ -4,10 +4,11 @@ attr_reader :id attr_reader :name attr_reader :ram attr_reader :disk + attr_reader :vcpus # This class provides an object for the "Flavor" of a server. The Flavor can generally be taken as the server specification, # providing information on things like memory and disk space. # # The disk attribute is an integer representing the disk space in GB. The memory attribute is an integer representing the RAM in MB. @@ -24,9 +25,10 @@ data = JSON.parse(response.body)['flavor'] @id = data['id'] @name = data['name'] @ram = data['ram'] @disk = data['disk'] + @vcpus = data['vcpus'] end end end end