Class: Rackspace::CloudServers::Flavor

Inherits:
Base
  • Object
show all
Defined in:
lib/rackspace/cloud_servers/flavor.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#id

Instance Method Summary collapse

Methods inherited from Base

all, #attributes_for_update, count, #create, create, find, first, #initialize, last, #new_record?, #reload, resource, resource_url, #set_attributes, #update

Constructor Details

This class inherits a constructor from Rackspace::CloudServers::Base

Instance Attribute Details

#diskObject

Returns the value of attribute disk.



2
3
4
# File 'lib/rackspace/cloud_servers/flavor.rb', line 2

def disk
  @disk
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/rackspace/cloud_servers/flavor.rb', line 2

def name
  @name
end

#ramObject

Returns the value of attribute ram.



2
3
4
# File 'lib/rackspace/cloud_servers/flavor.rb', line 2

def ram
  @ram
end

Instance Method Details

#destroyObject

Deletion isn’t allowed for flavors



10
11
12
# File 'lib/rackspace/cloud_servers/flavor.rb', line 10

def destroy
  false
end

#saveObject

Saving (create/update) isn’t allowed for flavors



5
6
7
# File 'lib/rackspace/cloud_servers/flavor.rb', line 5

def save
  false
end