Class: Fog::Compute::RackspaceV2::Flavor

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/rackspace/models/compute_v2/flavor.rb

Instance Attribute Summary collapse

Attributes inherited from Model

#collection, #service

Method Summary

Methods inherited from Model

#initialize, #inspect, #reload, #symbolize_keys, #to_json, #wait_for

Methods included from Attributes::ClassMethods

#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes

Methods included from Fog::Core::DeprecatedConnectionAccessors

#connection, #connection=, #prepare_service_value

Methods included from Attributes::InstanceMethods

#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #persisted?, #requires, #requires_one

Constructor Details

This class inherits a constructor from Fog::Model

Instance Attribute Details

#diskString (readonly)

Returns disk space in GB.

Returns:

  • (String)

    disk space in GB



23
# File 'lib/fog/rackspace/models/compute_v2/flavor.rb', line 23

attribute :disk

#idString (readonly)

Returns The flavor id.

Returns:



10
# File 'lib/fog/rackspace/models/compute_v2/flavor.rb', line 10

identity :id

Returns flavor links.

Returns:

  • (Array)

    flavor links.



31
# File 'lib/fog/rackspace/models/compute_v2/flavor.rb', line 31

attribute :links

#nameString (readonly)

Returns flavor name.

Returns:



15
# File 'lib/fog/rackspace/models/compute_v2/flavor.rb', line 15

attribute :name

#rameFixnum (readonly)

Returns ram in MB.

Returns:

  • (Fixnum)

    ram in MB



19
# File 'lib/fog/rackspace/models/compute_v2/flavor.rb', line 19

attribute :ram

#vcpusFixnum (readonly)

Returns number of virtual CPUs.

Returns:

  • (Fixnum)

    number of virtual CPUs



27
# File 'lib/fog/rackspace/models/compute_v2/flavor.rb', line 27

attribute :vcpus