Class: Rackspace::CloudServers::Server

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

Instance Attribute Summary collapse

Attributes inherited from Base

#id

Instance Method Summary collapse

Methods inherited from Base

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

Constructor Details

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

Instance Attribute Details

#addressesObject

Returns the value of attribute addresses.



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

def addresses
  @addresses
end

#adminPassObject

Returns the value of attribute adminPass.



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

def adminPass
  @adminPass
end

#flavorIdObject

Returns the value of attribute flavorId.



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

def flavorId
  @flavorId
end

#hostIdObject

Returns the value of attribute hostId.



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

def hostId
  @hostId
end

#imageIdObject

Returns the value of attribute imageId.



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

def imageId
  @imageId
end

#metadataObject

Returns the value of attribute metadata.



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

def 
  @metadata
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#personalityObject

Returns the value of attribute personality.



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

def personality
  @personality
end

#progressObject

Returns the value of attribute progress.



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

def progress
  @progress
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

Instance Method Details

#attributes_for_updateObject

Overriding the update attributes so that just name and adminPass are persisted on an update



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

def attributes_for_update
  [:name, :adminPass]
end