def update(item)
      process_images(item) unless item.images.nil?
      case item
      when Post
        return api_call("metaWeblog.editPost", item.id, @user, @password, item.to_struct(:metaWeblog), item.published)
      when Page
        return api_call("wp.editPage", @id, item.id, @user, @password, item.to_struct(:wp), item.published)
      else
        raise "Unknown item type: #{item}"
      end
    end
def update(item)
      process_images(item) unless item.images.nil?
      case item
      when Post
        return api_call("metaWeblog.editPost", item.id, @user, @password, item.to_struct(:metaWeblog), item.published)
      when Page
        return api_call("wp.editPage", @id, item.id, @user, @password, item.to_struct(:wp), item.published)
      else
        raise "Unknown item type: #{item}"
      end
    end
publish