# File lib/deltacloud/models/instance.rb, line 76
  def to_hash
    h = self.to_hash_original
    h[:public_addresses] = h[:public_addresses].collect do |address|
      { :address => { :type => address.address_type, :value => address } }
    end
    h[:actions] = self.actions.collect do |action|
      { "#{action}""#{action}" => {
        :method => collections[:instances].operations[action.to_sym].method,
        :href => collections[:instances].operations[action.to_sym].path.gsub(':id', self.id)
      }}
    end
    h
  end