# File lib/fog/joyent/models/compute/snapshots.rb, line 10 def create(machine_id, snapshot_name) data = self.connection.create_machine_snapshot(machine_id, snapshot_name).body data['machine_id'] = machine_id new(data) end