class FlexiScale::Server

Constants

STATUS_IN_WORDS

Public Instance Methods

to_handy_hash() click to toggle source
# File lib/api/Flexiscale APIAddons.rb, line 140
    def to_handy_hash
      ::FlexiScale::attrs_to_hash(self, :disk_capacity, :disks, :ip_addresses, 
                                        :memory, :modified, :network_interfaces, :package_id, 
                                        :processors, :status, :uptime ).merge(
        :fxs_id     => self.server_id,
        :name       => self.server_name,
        :fxs_status => self.status,
#        :status     => STATUS_IN_WORDS[self.status],
        :image_id   => self.operating_system_image.operating_system_image_id,
        :image_name => self.operating_system_image.operating_system_image_name,
        :initial_password => self.initial_password.chop
      )
    end