def push_object(local_object)
      object_name = @factory.object_name.to_sym
      
      local_object.before_push(self) if local_object.respond_to?(:before_push)
      
      changes = {}
      fields = configuration.synchronizable_for_push
      fields.each do |atr|
        value = local_object.send(atr)
        changes[atr.to_s] = value
      end
      
      @service.set_contexts(local_object.contexts)
      
      if local_object._remote_id
        @service.update(object_name, local_object._remote_id, changes)
      else
        result = @service.create(object_name, changes)
        if result
          local_object._remote_id = result['id']
          fields = configuration.synchronizable_for_pull
          fields.each do |atr|
            local_object.write_attribute(atr, result[atr.to_s])
          end
          local_object.save
        end
      end
      
      local_object.after_push(self) if local_object.respond_to?(:after_push)
      @service.clear_contexts
    end
def push_object(local_object)
      object_name = @factory.object_name.to_sym
      
      local_object.before_push(self) if local_object.respond_to?(:before_push)
      
      changes = {}
      fields = configuration.synchronizable_for_push
      fields.each do |atr|
        value = local_object.send(atr)
        changes[atr.to_s] = value
      end
      
      @service.set_contexts(local_object.contexts)
      
      if local_object._remote_id
        @service.update(object_name, local_object._remote_id, changes)
      else
        result = @service.create(object_name, changes)
        if result
          local_object._remote_id = result['id']
          fields = configuration.synchronizable_for_pull
          fields.each do |atr|
            local_object.write_attribute(atr, result[atr.to_s])
          end
          local_object.save
        end
      end
      
      local_object.after_push(self) if local_object.respond_to?(:after_push)
      @service.clear_contexts
    end
Pushes local object to remote services.
 Er, I mean, its attributes.
 Like not object itself. Just attributes.
 @param [Object] Local object