class Fog::Compute::GoGrid::Password

Public Class Methods

new(attributes={}) click to toggle source
Calls superclass method Fog::Model.new
# File lib/fog/go_grid/models/compute/password.rb, line 18
def initialize(attributes={})
  super
end

Public Instance Methods

destroy() click to toggle source
# File lib/fog/go_grid/models/compute/password.rb, line 22
def destroy
  requires :id
  connection.grid_server_destroy(id)
  true
end
image() click to toggle source
# File lib/fog/go_grid/models/compute/password.rb, line 28
def image
  requires :image_id
  connection.grid_image_get(image_id)
end
ready?() click to toggle source
# File lib/fog/go_grid/models/compute/password.rb, line 33
def ready?
  @state == 'On'
end
save() click to toggle source
# File lib/fog/go_grid/models/compute/password.rb, line 37
def save
  raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if identity
  requires :password_id
  data = connection.support_password_list()
  merge_attributes(data.body)
  true
end