# File lib/deltacloud/models/instance.rb, line 75 def to_hash h = self.to_hash_original h[:public_addresses] = h[:public_addresses].collect do |address| { :address => { :type => address_type(address), :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