Class: Rackspace::CloudServers::Server
- Defined in:
- lib/rackspace/cloud_servers/server.rb
Instance Attribute Summary collapse
-
#addresses ⇒ Object
Returns the value of attribute addresses.
-
#adminPass ⇒ Object
Returns the value of attribute adminPass.
-
#flavorId ⇒ Object
Returns the value of attribute flavorId.
-
#hostId ⇒ Object
Returns the value of attribute hostId.
-
#imageId ⇒ Object
Returns the value of attribute imageId.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#name ⇒ Object
Returns the value of attribute name.
-
#personality ⇒ Object
Returns the value of attribute personality.
-
#progress ⇒ Object
Returns the value of attribute progress.
-
#status ⇒ Object
Returns the value of attribute status.
Attributes inherited from Base
Instance Method Summary collapse
-
#attributes_for_update ⇒ Object
Overriding the update attributes so that just name and adminPass are persisted on an update.
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
#addresses ⇒ Object
Returns the value of attribute addresses.
2 3 4 |
# File 'lib/rackspace/cloud_servers/server.rb', line 2 def addresses @addresses end |
#adminPass ⇒ Object
Returns the value of attribute adminPass.
2 3 4 |
# File 'lib/rackspace/cloud_servers/server.rb', line 2 def adminPass @adminPass end |
#flavorId ⇒ Object
Returns the value of attribute flavorId.
2 3 4 |
# File 'lib/rackspace/cloud_servers/server.rb', line 2 def flavorId @flavorId end |
#hostId ⇒ Object
Returns the value of attribute hostId.
2 3 4 |
# File 'lib/rackspace/cloud_servers/server.rb', line 2 def hostId @hostId end |
#imageId ⇒ Object
Returns the value of attribute imageId.
2 3 4 |
# File 'lib/rackspace/cloud_servers/server.rb', line 2 def imageId @imageId end |
#metadata ⇒ Object
Returns the value of attribute metadata.
2 3 4 |
# File 'lib/rackspace/cloud_servers/server.rb', line 2 def @metadata end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/rackspace/cloud_servers/server.rb', line 2 def name @name end |
#personality ⇒ Object
Returns the value of attribute personality.
2 3 4 |
# File 'lib/rackspace/cloud_servers/server.rb', line 2 def personality @personality end |
#progress ⇒ Object
Returns the value of attribute progress.
2 3 4 |
# File 'lib/rackspace/cloud_servers/server.rb', line 2 def progress @progress end |
#status ⇒ Object
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_update ⇒ Object
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 |